전특 초기화에서 '쿨'을 감안함

This commit is contained in:
2020-06-25 23:45:09 +09:00
parent 22f856668f
commit cd9a4887fd
@@ -38,7 +38,7 @@ class che_전투특기초기화 extends Command\GeneralCommand{
$yearMonth = Util::joinYearMonth($env['year'], $env['month']); $yearMonth = Util::joinYearMonth($env['year'], $env['month']);
$auxYearMonth = $general->getAuxVar('used_'.$this->getName())??-999; $auxYearMonth = $general->getAuxVar('used_'.$this->getName())??-999;
if($yearMonth < $auxYearMonth + 60){ if($yearMonth < $auxYearMonth + 60 - $this->getPreReqTurn()){
$this->minConditionConstraints=[ $this->minConditionConstraints=[
ConstraintHelper::AlwaysFail('초기화한 지 5년이 지나야합니다') ConstraintHelper::AlwaysFail('초기화한 지 5년이 지나야합니다')
]; ];