| 1 | package BalanceOfPower::Commands::BoostProduction; | ||||||||||
| 2 | 11 | $BalanceOfPower::Commands::BoostProduction::VERSION = '0.200000'; | |||||||||
| 3 | 11 | ▶ | use Moo; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | 11 | ▶ | use BalanceOfPower::Constants ":all"; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | 11 | extends 'BalanceOfPower::Commands::NoArgs'; | |||||||||
| 8 | |||||||||||
| 9 | sub IA | ||||||||||
| 10 | { | ||||||||||
| 11 | 19 | ▶ | my $self = shift; | ||||||||
|
Subroutine
IA: called CC=2 SCAR=6.9
Pod
undocumented
| |||||||||||
| 12 | 19 | my $nation = $self->get_nation(); | |||||||||
| 13 | 19 | ▶ | if($nation->production < EMERGENCY_PRODUCTION_LIMIT) | ||||||||
|
Branch: 1 branch
| |||||||||||
| 14 | { | ||||||||||
| 15 | 5 | return "BOOST PRODUCTION" | |||||||||
| 16 | } | ||||||||||
| 17 | else | ||||||||||
| 18 | { | ||||||||||
| 19 | 14 | return undef; | |||||||||
| 20 | } | ||||||||||
| 21 | } | ||||||||||
| 22 | |||||||||||
| 23 | 11 | 1; | |||||||||