랜임모드시 임관출력 버그 수정

This commit is contained in:
2020-05-04 07:26:53 +09:00
parent d0771e3392
commit dbba6fa942
3 changed files with 19 additions and 1 deletions
+9
View File
@@ -93,6 +93,10 @@ class che_임관 extends Command\GeneralCommand{
}
$relYear = $env['year'] - $env['startyear'];
$this->reservableConstraints=[
ConstraintHelper::ReqEnvValue('join_mode', '!=', 'onlyRandom', '랜덤 임관만 가능합니다')
];
$this->runnableConstraints=[
ConstraintHelper::ReqEnvValue('join_mode', '!=', 'onlyRandom', '랜덤 임관만 가능합니다'),
@@ -103,6 +107,11 @@ class che_임관 extends Command\GeneralCommand{
];
}
public function canDisplay(): bool
{
return ($this->env['join_mode']??'') != 'onlyRandom';
}
public function getCost():array{
return [0, 0];
}