커맨드 brief 수정, 내무부 버그 수정

This commit is contained in:
2020-03-08 20:01:49 +09:00
parent 1de49fe998
commit 6b16573f6b
5 changed files with 27 additions and 4 deletions
+8
View File
@@ -110,6 +110,14 @@ class che_증여 extends Command\GeneralCommand{
return 0;
}
public function getBrief(): string
{
$destGeneralName = $this->destGeneralObj->getName();
$resText = $this->arg['isGold']?'금':'쌀';
$name = $this->getName();
return "{$destGeneralName}】에게 {$resText} {$this->arg['amount']}{$name}";
}
public function run():bool{
if(!$this->isRunnable()){
throw new \RuntimeException('불가능한 커맨드를 강제로 실행 시도');