fix: NPC AI가 현재 병종 기술등급을 고려하지 않는 문제 수정
- 아직 사용하지 않는 징병 페이지 요구 기술 항목도 수정
This commit is contained in:
@@ -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 */
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user