장수 커맨드 설명 추가

This commit is contained in:
2019-10-07 00:38:52 +09:00
parent 2d0c3ef881
commit e5050bb6c8
21 changed files with 235 additions and 22 deletions
+15
View File
@@ -48,6 +48,21 @@ class che_단련 extends Command\GeneralCommand{
}
public function getCommandDetailTitle():string{
$name = $this->getName();
[$reqGold, $reqRice] = $this->getCost();
$title = "{$name}(병종숙련";
if($reqGold > 0){
$title .= ", 자금{$reqGold}";
}
if($reqRice > 0){
$title .= ", 군량{$reqRice}";
}
$title .= ')';
return $title;
}
public function getCost():array{
$env = $this->env;
return [$env['develcost'], $env['develcost']];