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) {