From 8855c92e73efcd12fde39a1074b673ef18ebaf86 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sat, 25 Apr 2020 23:54:40 +0900 Subject: [PATCH] =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/GeneralAI.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/hwe/sammo/GeneralAI.php b/hwe/sammo/GeneralAI.php index eaae0869..89358e8e 100644 --- a/hwe/sammo/GeneralAI.php +++ b/hwe/sammo/GeneralAI.php @@ -1583,6 +1583,11 @@ class GeneralAI $devRate = $this->calcNationDevelopedRate(); + $trialProp += ($devRate['pop'] + $devRate['all']) / 2; + + $trialProp /= 4; + $trialProp = $trialProp**8; + LogText('선전포고', [ 'avgGold'=>$avgGold, 'reqGold'=>$this->nationPolicy->reqNPCWarGold, @@ -1592,10 +1597,6 @@ class GeneralAI 'devRate'=>$devRate, 'prop'=>$trialProp ]); - $trialProp += ($devRate['pop'] + $devRate['all']) / 2; - - $trialProp /= 4; - $trialProp = $trialProp**8; if(!Util::randBool($trialProp)){ return null;