커맨드 brief 수정, 내무부 버그 수정
This commit is contained in:
@@ -56,7 +56,7 @@ class che_건국 extends Command\GeneralCommand{
|
||||
try{
|
||||
$nationTypeClass = buildNationTypeClass($nationType);
|
||||
}
|
||||
catch(InvalidArgumentException $e){
|
||||
catch(\InvalidArgumentException $e){
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -140,7 +140,7 @@ class che_건국 extends Command\GeneralCommand{
|
||||
$nationTypeName = $nationTypeClass->getName();
|
||||
|
||||
|
||||
$logger->pushGeneralActionLog("<D><b>{$nationName}</></>{$josaUl} 건국하였습니다. <1>$date</>");
|
||||
$logger->pushGeneralActionLog("<D><b>{$nationName}</b></>{$josaUl} 건국하였습니다. <1>$date</>");
|
||||
$logger->pushGlobalActionLog("<Y>{$generalName}</>{$josaYi} <G><b>{$cityName}</b></>에 국가를 건설하였습니다.");
|
||||
|
||||
$josaNationYi = JosaUtil::pick($nationName, '이');
|
||||
|
||||
@@ -104,6 +104,14 @@ class che_등용 extends Command\GeneralCommand{
|
||||
return 0;
|
||||
}
|
||||
|
||||
public function getBrief(): string
|
||||
{
|
||||
$destGeneralName = $this->destGeneralObj->getName();
|
||||
$name = $this->getName();
|
||||
$josaUl = JosaUtil::pick($name, '을');
|
||||
return "【{$destGeneralName}】{$josaUl} {$name}";
|
||||
}
|
||||
|
||||
public function run():bool{
|
||||
if(!$this->isRunnable()){
|
||||
throw new \RuntimeException('불가능한 커맨드를 강제로 실행 시도');
|
||||
|
||||
@@ -82,6 +82,13 @@ class che_선양 extends Command\GeneralCommand{
|
||||
return 0;
|
||||
}
|
||||
|
||||
public function getBrief(): string
|
||||
{
|
||||
$destGeneralName = $this->destGeneralObj->getName();
|
||||
$name = $this->getName();
|
||||
return "【{$destGeneralName}】에게 {$name}";
|
||||
}
|
||||
|
||||
public function run():bool{
|
||||
if(!$this->isRunnable()){
|
||||
throw new \RuntimeException('불가능한 커맨드를 강제로 실행 시도');
|
||||
|
||||
@@ -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('불가능한 커맨드를 강제로 실행 시도');
|
||||
|
||||
Reference in New Issue
Block a user