« lib/BalanceOfPower/Role/Ruler.pm
↑ Summary
blib/lib/BalanceOfPower/Commands/DiplomaticPressure.pm »
| 1 | package BalanceOfPower::Commands::BoostProduction; | ||
| 2 | $BalanceOfPower::Commands::BoostProduction::VERSION = '0.200000'; | ||
| 3 | use Moo; | ||
| 4 | |||
| 5 | use BalanceOfPower::Constants ":all"; | ||
| 6 | |||
| 7 | extends 'BalanceOfPower::Commands::NoArgs'; | ||
| 8 | |||
| 9 | sub IA | ||
| 10 | { | ||
| 11 | my $self = shift; | ||
| 12 | my $nation = $self->get_nation(); | ||
| 13 | if($nation->production < EMERGENCY_PRODUCTION_LIMIT) | ||
| 14 | { | ||
| 15 | return "BOOST PRODUCTION" | ||
| 16 | } | ||
| 17 | else | ||
| 18 | { | ||
| 19 | return undef; | ||
| 20 | } | ||
| 21 | } | ||
| 22 | |||
| 23 | 1; |