diff --git a/hwe/sammo/AutorunNationPolicy.php b/hwe/sammo/AutorunNationPolicy.php index f9bd8bc7..a712202b 100644 --- a/hwe/sammo/AutorunNationPolicy.php +++ b/hwe/sammo/AutorunNationPolicy.php @@ -169,8 +169,8 @@ class AutorunNationPolicy { if($this->reqNPCWarGold === 0 || $this->reqNPCWarRice === 0){ $defaultCrewType = GameUnitConst::byID(GameUnitConst::DEFAULT_CREWTYPE); - $reqGold = $defaultCrewType->costWithTech($nation['tech'], $this->minNPCWarLeadership * 150); - $reqRice = $defaultCrewType->riceWithTech($nation['tech'], $this->minNPCWarLeadership * 150); + $reqGold = $defaultCrewType->costWithTech($nation['tech'], GameConst::$defaultStatNPCMax * 100); + $reqRice = $defaultCrewType->riceWithTech($nation['tech'], GameConst::$defaultStatNPCMax * 100); if($this->reqNPCWarGold === 0){ $this->reqNPCWarGold = Util::round($reqGold * 2, -2); } diff --git a/hwe/sammo/GeneralAI.php b/hwe/sammo/GeneralAI.php index 31ab30dc..984ba496 100644 --- a/hwe/sammo/GeneralAI.php +++ b/hwe/sammo/GeneralAI.php @@ -1585,6 +1585,7 @@ class GeneralAI $trialProp += ($devRate['pop'] + $devRate['all']) / 2; $trialProp /= 3; + $trialProp = $trialProp**3; if(!Util::randBool($trialProp)){ return null;