From be282db1c2ec84b013bf96204b11ad8fa3b35d3c Mon Sep 17 00:00:00 2001 From: hide_d Date: Sun, 26 Apr 2020 03:36:40 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B2=84=EA=B7=B8=20=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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hwe/sammo/GeneralAI.php b/hwe/sammo/GeneralAI.php index 6244e848..f5d00268 100644 --- a/hwe/sammo/GeneralAI.php +++ b/hwe/sammo/GeneralAI.php @@ -3353,6 +3353,7 @@ class GeneralAI $minBelong = min($this->general->getVar('belong') - 1, 3); + $updatedNationVar = []; /** @var General[] */ $nextChiefs = []; @@ -3381,6 +3382,7 @@ class GeneralAI $general->setVar('officer_level', 11); $general->setVar('officer_city', 0); $nation['l11set'] = true; + $updatedNationVar['l11set'] = 1; break; } } @@ -3397,7 +3399,7 @@ class GeneralAI }); - $updatedNationVar = []; + foreach(Util::range(11, $minChiefLevel-1, -1) as $chiefLevel) { $nationKey = "l{$chiefLevel}set"; if($nation[$nationKey]){