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_약점간파', ] ];