feat: 의원소환, 철야내정 추가

This commit is contained in:
2023-12-25 14:08:46 +00:00
parent 53474ab3d2
commit 2bcdbb0177
5 changed files with 137 additions and 9 deletions
@@ -0,0 +1,51 @@
<?php
namespace sammo\Command\UserAction;
use sammo\ActionBuff\g65_내정성공;
use \sammo\Command;
class g65_철야내정 extends Command\UserActionCommand{
static protected $actionName = '철야내정';
protected function argTest():bool{
return true;
}
public function getBrief(): string
{
return '철야 내정';
}
public function getCommandDetailTitle(): string
{
$postReqTurn = $this->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;
}
}