커맨드 출력 준비

This commit is contained in:
2018-11-23 03:12:08 +09:00
parent c5868b7e5a
commit 2e462f39f7
6 changed files with 125 additions and 232 deletions
@@ -29,6 +29,27 @@ class che_상업투자 extends Command\GeneralCommand{
static protected $actionName = '상업 투자';
static protected $debuffFront = 0.5;
public function getCommandDetailTitle():string{
$name = $this->getName();
$statTypeBase = [
'leader'=>'통솔경험',
'power'=>'무력경험',
'intel'=>'지력경험',
];
$statType = $statType[static::$statKey];
[$reqGold, $reqRice] = $this->getCost();
$title = "{$name}({$statType}";
if($reqGold > 0){
$title .= ", 자금{$reqGold}";
}
if($reqRice > 0){
$title .= ", 군량{$reqRice}";
}
$title .= ')';
return $title;
}
protected function argTest():bool{
$this->arg = null;
return true;