feat: 건국 금지, 지정 임관 금지 패널티

This commit is contained in:
2024-06-08 17:21:55 +00:00
parent f12262b946
commit 8bd0cc1c64
2 changed files with 7 additions and 3 deletions
+2 -1
View File
@@ -82,7 +82,8 @@ class che_건국 extends Command\GeneralCommand
$this->minConditionConstraints = [
ConstraintHelper::BeOpeningPart($relYear + 1),
ConstraintHelper::ReqNationValue('level', '국가규모', '==', 0, '정식 국가가 아니어야합니다.')
ConstraintHelper::ReqNationValue('level', '국가규모', '==', 0, '정식 국가가 아니어야합니다.'),
ConstraintHelper::NoPanelty(PenaltyKey::NoFoundNation),
];
}
+5 -2
View File
@@ -17,6 +17,7 @@ use function \sammo\getNationStaticInfo;
use \sammo\Constraint\ConstraintHelper;
use sammo\Enums\InheritanceKey;
use sammo\Enums\PenaltyKey;
class che_임관 extends Command\GeneralCommand
{
@@ -66,7 +67,8 @@ class che_임관 extends Command\GeneralCommand
$this->minConditionConstraints = [
ConstraintHelper::ReqEnvValue('join_mode', '!=', 'onlyRandom', '랜덤 임관만 가능합니다'),
ConstraintHelper::BeNeutral(),
ConstraintHelper::AllowJoinAction()
ConstraintHelper::AllowJoinAction(),
ConstraintHelper::NoPanelty(PenaltyKey::NoChosenAssignment),
];
}
@@ -92,7 +94,8 @@ class che_임관 extends Command\GeneralCommand
ConstraintHelper::BeNeutral(),
ConstraintHelper::ExistsDestNation(),
ConstraintHelper::AllowJoinDestNation($relYear),
ConstraintHelper::AllowJoinAction()
ConstraintHelper::AllowJoinAction(),
ConstraintHelper::NoPanelty(PenaltyKey::NoChosenAssignment),
];
}