From e1df980ece3e22ac6681d7d8a82547b120fb4883 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sat, 20 Nov 2021 00:37:07 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20'=EC=B5=9C=EC=86=8C=20=EC=A0=84=ED=88=AC?= =?UTF-8?q?=20=EA=B0=80=EB=8A=A5=20=EB=B3=91=EB=A0=A5=20=EC=88=98'?= =?UTF-8?q?=EB=A5=BC=20=EB=A7=A4=EC=9A=B0=20=EB=86=92=EC=97=AC=20=EC=B6=9C?= =?UTF-8?q?=EB=B3=91=20=EA=B8=88=EC=A7=80=EA=B0=80=20=EA=B0=80=EB=8A=A5?= =?UTF-8?q?=ED=95=9C=20=EB=AC=B8=EC=A0=9C=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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hwe/sammo/GeneralAI.php b/hwe/sammo/GeneralAI.php index 3cf8be1f..41a48a37 100644 --- a/hwe/sammo/GeneralAI.php +++ b/hwe/sammo/GeneralAI.php @@ -2674,13 +2674,13 @@ class GeneralAI $db = DB::db(); - if ($general->getVar('train') < $this->nationPolicy->properWarTrainAtmos) { + if ($general->getVar('train') < min(100, $this->nationPolicy->properWarTrainAtmos)) { return null; } - if ($general->getVar('atmos') < $this->nationPolicy->properWarTrainAtmos) { + if ($general->getVar('atmos') < min(100, $this->nationPolicy->properWarTrainAtmos)) { return null; } - if ($general->getVar('crew') < $this->nationPolicy->minWarCrew) { + if ($general->getVar('crew') < min(($this->fullLeadership - 2) * 100, $this->nationPolicy->minWarCrew)) { return null; }