fix: 징병 가능 여부 판별 시 상대 년도 판별 로직 오류 해결
This commit is contained in:
@@ -53,11 +53,11 @@ class AvailableRecruitCrewType extends Constraint{
|
|||||||
}
|
}
|
||||||
|
|
||||||
$crewType = GameUnitConst::byID($this->arg);
|
$crewType = GameUnitConst::byID($this->arg);
|
||||||
if($crewType->isValid($ownCities, $ownRegions, $year = $startyear, $tech)){
|
if($crewType->isValid($ownCities, $ownRegions, $year - $startyear, $tech)){
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->reason = "현재 선택할 수 없는 병종입니다.";
|
$this->reason = "현재 선택할 수 없는 병종입니다.";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user