feat: 건국 불가 페널티
This commit is contained in:
@@ -18,6 +18,7 @@ use function \sammo\getAllNationStaticInfo;
|
|||||||
|
|
||||||
use \sammo\Constraint\ConstraintHelper;
|
use \sammo\Constraint\ConstraintHelper;
|
||||||
use sammo\Enums\InheritanceKey;
|
use sammo\Enums\InheritanceKey;
|
||||||
|
use sammo\Enums\PenaltyKey;
|
||||||
|
|
||||||
use function sammo\buildNationTypeClass;
|
use function sammo\buildNationTypeClass;
|
||||||
use function sammo\genGenericUniqueRNGFromGeneral;
|
use function sammo\genGenericUniqueRNGFromGeneral;
|
||||||
@@ -102,6 +103,7 @@ class che_건국 extends Command\GeneralCommand
|
|||||||
ConstraintHelper::CheckNationNameDuplicate($nationName),
|
ConstraintHelper::CheckNationNameDuplicate($nationName),
|
||||||
ConstraintHelper::AllowJoinAction(),
|
ConstraintHelper::AllowJoinAction(),
|
||||||
ConstraintHelper::ConstructableCity(),
|
ConstraintHelper::ConstructableCity(),
|
||||||
|
ConstraintHelper::NoPanelty(PenaltyKey::NoFoundNation),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -13,5 +13,5 @@ enum PenaltyKey: string{
|
|||||||
case NoBanGeneral = 'noBanGeneral';
|
case NoBanGeneral = 'noBanGeneral';
|
||||||
case NoChiefTurnInput = 'noChiefTurnInput';
|
case NoChiefTurnInput = 'noChiefTurnInput';
|
||||||
case NoChiefChange = 'noChiefChange';
|
case NoChiefChange = 'noChiefChange';
|
||||||
|
case NoFoundNation = 'noFoundNation';
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user