From 0a39ba10232659ed4b11712e5973d6256b118952 Mon Sep 17 00:00:00 2001 From: Hide_D Date: Thu, 23 Jan 2025 17:13:11 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20NPC=20AI=EA=B0=80=20=ED=98=84=EC=9E=AC?= =?UTF-8?q?=20=EB=B3=91=EC=A2=85=20=EA=B8=B0=EC=88=A0=EB=93=B1=EA=B8=89?= =?UTF-8?q?=EC=9D=84=20=EA=B3=A0=EB=A0=A4=ED=95=98=EC=A7=80=20=EC=95=8A?= =?UTF-8?q?=EB=8A=94=20=EB=AC=B8=EC=A0=9C=20=EC=88=98=EC=A0=95=20-=20?= =?UTF-8?q?=EC=95=84=EC=A7=81=20=EC=82=AC=EC=9A=A9=ED=95=98=EC=A7=80=20?= =?UTF-8?q?=EC=95=8A=EB=8A=94=20=EC=A7=95=EB=B3=91=20=ED=8E=98=EC=9D=B4?= =?UTF-8?q?=EC=A7=80=20=EC=9A=94=EA=B5=AC=20=EA=B8=B0=EC=88=A0=20=ED=95=AD?= =?UTF-8?q?=EB=AA=A9=EB=8F=84=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/Command/General/che_징병.php | 2 +- hwe/sammo/GeneralAI.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hwe/sammo/Command/General/che_징병.php b/hwe/sammo/Command/General/che_징병.php index 1afac212..371dd298 100644 --- a/hwe/sammo/Command/General/che_징병.php +++ b/hwe/sammo/Command/General/che_징병.php @@ -281,7 +281,7 @@ class che_징병 extends Command\GeneralCommand $crewObj->id = $unit->id; /** @var ?\sammo\GameUnitConstraints\ReqTech */ - $reqTechObj = $unit->reqConstraints['reqTech'] ?? null; + $reqTechObj = $unit->reqConstraints['ReqTech'] ?? null; $crewObj->reqTech = $reqTechObj ? $reqTechObj->reqTech : 0; /** @var ?\sammo\GameUnitConstraint\ReqMinRelYear */ diff --git a/hwe/sammo/GeneralAI.php b/hwe/sammo/GeneralAI.php index 0cb3f9be..eb3618b1 100644 --- a/hwe/sammo/GeneralAI.php +++ b/hwe/sammo/GeneralAI.php @@ -2585,7 +2585,7 @@ class GeneralAI if ($this->generalPolicy->can고급병종) { $currCrewType = $general->getCrewTypeObj(); if ($currCrewType->isValid($general, $cities, $regions, $relYear, $tech, $this->nation['aux'])) { - $reqTechObj = $currCrewType->reqConstraints['reqTech'] ?? null; + $reqTechObj = $currCrewType->reqConstraints['ReqTech'] ?? null; if($reqTechObj){ $reqTech = $reqTechObj->getValue($tech); if ($reqTech >= 2000) {