feat: PenaltyKey::NoChiefTurnInput

This commit is contained in:
2024-06-08 15:48:01 +00:00
parent 3da11bf21c
commit fba5fbdb6b
2 changed files with 10 additions and 0 deletions
+8
View File
@@ -3,6 +3,7 @@ namespace sammo;
use sammo\Command\GeneralCommand;
use sammo\Command\NationCommand;
use sammo\Enums\PenaltyKey;
function getGeneralTurnBrief(General $generalObj, array $turnList) {
$result = [];
@@ -434,6 +435,13 @@ function setNationCommand(int $generalID, array $turnList, string $command, ?arr
];
}
if($general->hasPenalty(PenaltyKey::NoChiefTurnInput)){
return [
'result'=>false,
'reason'=>'수뇌 턴 입력 불가능'
];
}
try{
$commandObj = buildNationCommandClass($command, $general, $env, $general->getLastTurn(), $arg);
}
+2
View File
@@ -11,4 +11,6 @@ enum PenaltyKey: string{
case NoChief = 'noChief';
case NoAmbassador = 'noAmbassador';
case NoBanGeneral = 'noBanGeneral';
case NoChiefTurnInput = 'noChiefTurnInput';
}