From 8bd0cc1c6493c51d2b8a5a37d22b8beb6e0d6f19 Mon Sep 17 00:00:00 2001 From: Hide_D Date: Sat, 8 Jun 2024 17:21:55 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20=EA=B1=B4=EA=B5=AD=20=EA=B8=88=EC=A7=80?= =?UTF-8?q?,=20=EC=A7=80=EC=A0=95=20=EC=9E=84=EA=B4=80=20=EA=B8=88?= =?UTF-8?q?=EC=A7=80=20=ED=8C=A8=EB=84=90=ED=8B=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/Command/General/che_건국.php | 3 ++- hwe/sammo/Command/General/che_임관.php | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/hwe/sammo/Command/General/che_건국.php b/hwe/sammo/Command/General/che_건국.php index 38f0ed4d..469b6091 100644 --- a/hwe/sammo/Command/General/che_건국.php +++ b/hwe/sammo/Command/General/che_건국.php @@ -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), ]; } diff --git a/hwe/sammo/Command/General/che_임관.php b/hwe/sammo/Command/General/che_임관.php index 5be02ea0..7f3baaf5 100644 --- a/hwe/sammo/Command/General/che_임관.php +++ b/hwe/sammo/Command/General/che_임관.php @@ -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), ]; }