From 997223031e3c763a5ea9cf7ff2145ed1afcaf914 Mon Sep 17 00:00:00 2001 From: Hide_D Date: Wed, 27 Dec 2023 13:09:27 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20g65=5F=EC=95=BD=EC=A0=90=EA=B0=84?= =?UTF-8?q?=ED=8C=8C=20-=201=ED=84=B4=EB=8F=99=EC=95=88=20=EC=A0=84?= =?UTF-8?q?=ED=88=AC=20=EC=83=81=EC=84=B1=20=EC=9A=B0=EC=9C=84=20=EC=A0=81?= =?UTF-8?q?=20=EC=83=81=EB=8C=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/Command/UserAction/g65_약점간파.php | 61 +++++++++++++++++++ hwe/sammo/GameConstBase.php | 1 + 2 files changed, 62 insertions(+) create mode 100644 hwe/sammo/Command/UserAction/g65_약점간파.php diff --git a/hwe/sammo/Command/UserAction/g65_약점간파.php b/hwe/sammo/Command/UserAction/g65_약점간파.php new file mode 100644 index 00000000..584c8e97 --- /dev/null +++ b/hwe/sammo/Command/UserAction/g65_약점간파.php @@ -0,0 +1,61 @@ +getPostReqTurn(); + return "1턴동안 유리한 병종과 상대할 가능성 대폭 증가(재사용 대기 {$postReqTurn})"; + } + + protected function init(){ + $this->setCity(); + $this->setNation(); + + $this->fullConditionConstraints = [ + ConstraintHelper::NotBeNeutral() + ]; + } + + public function getPreReqTurn():int{ + return 0; + } + + public function getPostReqTurn():int{ + return 60; + } + + public function getCost():array{ + return [0, 0]; + } + + public function run(\Sammo\RandUtil $rng):bool{ + if (!$this->hasFullConditionMet()) { + throw new \RuntimeException('불가능한 커맨드를 강제로 실행 시도'); + } + + $general = $this->generalObj; + $general->addInstantBuff(new g65_전투순위보정(), 1); + + $date = $general->getTurnTime($general::TURNTIME_HM); + + $logger = $general->getLogger(); + $logger->pushGeneralActionLog("상대진영의 약점을 꿰뚫어 유리한 상대를 찾습니다. <1>$date"); + return true; + } +} \ No newline at end of file diff --git a/hwe/sammo/GameConstBase.php b/hwe/sammo/GameConstBase.php index c6f590e5..ad744135 100644 --- a/hwe/sammo/GameConstBase.php +++ b/hwe/sammo/GameConstBase.php @@ -408,6 +408,7 @@ class GameConstBase 'g65_병장기지원', 'g65_입대독려', 'g65_병사연회', + 'g65_약점간파', ] ];