diff --git a/hwe/sammo/Command/Nation/che_피장파장.php b/hwe/sammo/Command/Nation/che_피장파장.php index 8fb3a76e..18ed0f0d 100644 --- a/hwe/sammo/Command/Nation/che_피장파장.php +++ b/hwe/sammo/Command/Nation/che_피장파장.php @@ -75,7 +75,7 @@ class che_피장파장 extends Command\NationCommand $env = $this->env; $this->setCity(); - $this->setNation(); + $this->setNation(['strategic_cmd_limit']); $this->minConditionConstraints = [ ConstraintHelper::OccupiedCity(), @@ -113,6 +113,7 @@ class che_피장파장 extends Command\NationCommand [0, 1], '선포, 전쟁중인 상대국에게만 가능합니다.' ), + ConstraintHelper::AvailableStrategicCommand(), ]; } @@ -120,8 +121,9 @@ class che_피장파장 extends Command\NationCommand { $name = $this->getName(); $reqTurn = $this->getPreReqTurn() + 1; + $postReqTurn = $this->getPostReqTurn(); - return "{$name}/{$reqTurn}턴(대상 재사용 대기 {$this->getTargetPostReqTurn()})"; + return "{$name}/{$reqTurn}턴(재사용 대기 $postReqTurn, 대상 재사용 대기 {$this->getTargetPostReqTurn()})"; } public function getCost(): array @@ -136,7 +138,7 @@ class che_피장파장 extends Command\NationCommand public function getPostReqTurn(): int { - return 0; + return 8; } public function getTargetPostReqTurn(): int @@ -225,6 +227,10 @@ class che_피장파장 extends Command\NationCommand $logger->pushNationalHistoryLog("{$generalName}{$josaYi} {$destNationName}{$cmd->getName()} {$commandName}{$josaUl} 발동"); + $db->update('nation', [ + 'strategic_cmd_limit' => $this->generalObj->onCalcStrategic($this->getName(), 'globalDelay', 1) + ], 'nation=%i', $nationID); + $nationStor = KVStorage::getStorage($db, $nationID, 'nation_env'); $destNationStor = KVStorage::getStorage($db, $destNationID, 'nation_env'); diff --git a/hwe/sammo/GameConstBase.php b/hwe/sammo/GameConstBase.php index 78d11fca..b192a1fa 100644 --- a/hwe/sammo/GameConstBase.php +++ b/hwe/sammo/GameConstBase.php @@ -368,9 +368,9 @@ class GameConstBase 'che_의병모집', 'che_이호경식', 'che_급습', + 'che_피장파장', ], '기타' => [ - 'che_피장파장', 'che_국기변경', 'che_국호변경', ]