장수 커맨드 설명 추가

This commit is contained in:
2019-10-07 00:38:52 +09:00
parent 1a9168e824
commit 7e5a1d385c
21 changed files with 235 additions and 22 deletions
+21 -21
View File
@@ -29,27 +29,6 @@ class che_상업투자 extends Command\GeneralCommand{
static protected $actionName = '상업 투자';
static protected $debuffFront = 0.5;
public function getCommandDetailTitle():string{
$name = $this->getName();
$statTypeBase = [
'leadership'=>'통솔경험',
'strength'=>'무력경험',
'intel'=>'지력경험',
];
$statType = $statTypeBase[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;
@@ -77,6 +56,27 @@ class che_상업투자 extends Command\GeneralCommand{
$this->reqGold = $reqGold;
}
public function getCommandDetailTitle():string{
$name = $this->getName();
$statTypeBase = [
'leadership'=>'통솔경험',
'strength'=>'무력경험',
'intel'=>'지력경험',
];
$statType = $statTypeBase[static::$statKey];
[$reqGold, $reqRice] = $this->getCost();
$title = "{$name}({$statType}";
if($reqGold > 0){
$title .= ", 자금{$reqGold}";
}
if($reqRice > 0){
$title .= ", 군량{$reqRice}";
}
$title .= ')';
return $title;
}
public function getCost():array{
$develCost = $this->env['develcost'];
$reqGold = Util::round($this->generalObj->onCalcDomestic(static::$actionKey, 'cost', $develCost));