diff --git a/hwe/sammo/ActionBuff/g65_내정성공.php b/hwe/sammo/ActionBuff/g65_내정성공.php new file mode 100644 index 00000000..97912c66 --- /dev/null +++ b/hwe/sammo/ActionBuff/g65_내정성공.php @@ -0,0 +1,21 @@ +getPostReqTurn(); - return "3턴간 사기 +40(재사용 대기 {$postReqTurn})"; + return "3턴 간 사기 +40(재사용 대기 {$postReqTurn})"; } protected function init(){ @@ -44,10 +41,12 @@ class g65_병사연회 extends Command\UserActionCommand{ } public function run(\Sammo\RandUtil $rng):bool{ + $general = $this->generalObj; + $general->addInstantBuff(new g65_사기40(), 3); - $this->generalObj->addInstantBuff(new g65_사기40(), 3); - $logger = $this->generalObj->getLogger(); - $logger->pushGeneralActionLog("병사에게 연회를 열어 3턴간 사기가 40 상승합니다."); + $date = $general->getTurnTime($general::TURNTIME_HM); + $logger = $general->getLogger(); + $logger->pushGeneralActionLog("병사에게 연회를 열어 3턴간 사기가 40 상승합니다. <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 new file mode 100644 index 00000000..41221053 --- /dev/null +++ b/hwe/sammo/Command/UserAction/g65_의원소환.php @@ -0,0 +1,57 @@ +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; + if($general->getVar('injury') == 0){ + return false; + } + $general->setVar('injury', 0); + $date = $general->getTurnTime($general::TURNTIME_HM); + + $logger = $this->generalObj->getLogger(); + $logger->pushGeneralActionLog("의원을 불러 부상을 치료합니다. <1>$date"); + $general->applyDB(DB::db()); + return true; + } +} \ No newline at end of file diff --git a/hwe/sammo/Command/UserAction/g65_철야내정.php b/hwe/sammo/Command/UserAction/g65_철야내정.php new file mode 100644 index 00000000..e4024f27 --- /dev/null +++ b/hwe/sammo/Command/UserAction/g65_철야내정.php @@ -0,0 +1,51 @@ +getPostReqTurn(); + return "2턴 간 내정 항상 성공(재사용 대기 {$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_내정성공(), 3); + + $logger = $general->getLogger(); + $logger->pushGeneralActionLog("2턴 간 내정을 철저히 지휘합니다."); + return true; + } +} \ No newline at end of file diff --git a/hwe/sammo/GameConstBase.php b/hwe/sammo/GameConstBase.php index c115910e..af4236fd 100644 --- a/hwe/sammo/GameConstBase.php +++ b/hwe/sammo/GameConstBase.php @@ -401,8 +401,8 @@ class GameConstBase '개인 전략' => [ '휴식', 'g65_병사연회', - /*'g65_철야내정', - 'g65_의원소환',*/ + 'g65_철야내정', + 'g65_의원소환', ] ];