diff --git a/hwe/sammo/ActionBuff/g65_징병비용무시.php b/hwe/sammo/ActionBuff/g65_징병비용무시.php new file mode 100644 index 00000000..ed9c6320 --- /dev/null +++ b/hwe/sammo/ActionBuff/g65_징병비용무시.php @@ -0,0 +1,19 @@ +getPostReqTurn(); + return "이번턴의 징병/모병 비용 무시(재사용 대기 {$postReqTurn})"; + } + + protected function init(){ + //아무것도 하지 않음 + $this->fullConditionConstraints=[]; + + } + + 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{ + $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/Command/UserAction/g65_의원소환.php b/hwe/sammo/Command/UserAction/g65_의원소환.php index 41221053..c0e00d89 100644 --- a/hwe/sammo/Command/UserAction/g65_의원소환.php +++ b/hwe/sammo/Command/UserAction/g65_의원소환.php @@ -1,7 +1,6 @@ getPostReqTurn(); + return "이번턴의 징병/모병 인구 무시(재사용 대기 {$postReqTurn})"; + } + + protected function init(){ + //아무것도 하지 않음 + $this->fullConditionConstraints=[]; + + } + + 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{ + $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/Command/UserAction/g65_철야내정.php b/hwe/sammo/Command/UserAction/g65_철야내정.php index e4024f27..3d73969a 100644 --- a/hwe/sammo/Command/UserAction/g65_철야내정.php +++ b/hwe/sammo/Command/UserAction/g65_철야내정.php @@ -42,7 +42,7 @@ class g65_철야내정 extends Command\UserActionCommand{ public function run(\Sammo\RandUtil $rng):bool{ $general = $this->generalObj; - $general->addInstantBuff(new g65_내정성공(), 3); + $general->addInstantBuff(new g65_내정성공(), 2); $logger = $general->getLogger(); $logger->pushGeneralActionLog("2턴 간 내정을 철저히 지휘합니다."); diff --git a/hwe/sammo/GameConstBase.php b/hwe/sammo/GameConstBase.php index af4236fd..09506aa4 100644 --- a/hwe/sammo/GameConstBase.php +++ b/hwe/sammo/GameConstBase.php @@ -403,6 +403,7 @@ class GameConstBase 'g65_병사연회', 'g65_철야내정', 'g65_의원소환', + 'g65_병장기지원', ] ];