« blib/lib/BalanceOfPower/Nation/Role/Shareholder.pm
↑ Summary
lib/BalanceOfPower/Commands/TargetRoute.pm »
| 1 | package BalanceOfPower::Commands::BoostProduction; | ||||||||||
| 2 | 11 | $BalanceOfPower::Commands::BoostProduction::VERSION = '0.300010'; | |||||||||
| 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 | 0 | ▶ | my $self = shift; | ||||||||
|
Subroutine
IA: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 12 | 0 | my $nation = $self->get_nation(); | |||||||||
| 13 | 0 | ▶ | if($nation->production < EMERGENCY_PRODUCTION_LIMIT) | ||||||||
|
Branch: 1 branch
| |||||||||||
| 14 | { | ||||||||||
| 15 | 0 | return "BOOST PRODUCTION" | |||||||||
| 16 | } | ||||||||||
| 17 | else | ||||||||||
| 18 | { | ||||||||||
| 19 | 0 | return undef; | |||||||||
| 20 | } | ||||||||||
| 21 | } | ||||||||||
| 22 | |||||||||||
| 23 | 11 | 1; | |||||||||