From 184a43ccf5a24d29f2dbce8068ccb9f8f38c003b Mon Sep 17 00:00:00 2001 From: hide_d Date: Sat, 25 Apr 2020 22:37:51 +0900 Subject: [PATCH] =?UTF-8?q?=EC=84=A0=ED=8F=AC=20=EA=B8=B0=EC=A4=80=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/AutorunNationPolicy.php | 4 ++-- hwe/sammo/GeneralAI.php | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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;