From f10289f7b62013c2e9325906eabd8b19bc4f4dae Mon Sep 17 00:00:00 2001 From: Hide_D Date: Fri, 23 Sep 2022 21:56:15 +0900 Subject: [PATCH] =?UTF-8?q?game:=20=ED=94=BC=EC=9E=A5=ED=8C=8C=EC=9E=A5?= =?UTF-8?q?=EC=9D=80=20=EC=9D=B4=EC=A0=9C=20=EC=A0=84=EB=9E=B5=20-=20?= =?UTF-8?q?=EA=B8=80=EB=A1=9C=EB=B2=8C=20=EC=BF=A8=201=ED=84=B4=20-=20?= =?UTF-8?q?=ED=94=BC=EC=9E=A5=ED=8C=8C=EC=9E=A5=20=EC=BF=A8=208=ED=84=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/Command/Nation/che_피장파장.php | 12 +++++++++--- hwe/sammo/GameConstBase.php | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) 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_국호변경', ]