버그 수정

This commit is contained in:
2019-04-21 16:27:57 +09:00
parent d46b3154cc
commit c7748934b8
5 changed files with 20 additions and 19 deletions
+3 -3
View File
@@ -48,7 +48,7 @@ class che_징병 extends Command\GeneralCommand{
if(!key_exists('crewType', $this->arg)){
return false;
}
if(!key_exists('amount', $this->arg)){
if(!key_exists('amountCrew', $this->arg)){
return false;
}
$crewType = $this->arg['crewType'];
@@ -69,7 +69,7 @@ class che_징병 extends Command\GeneralCommand{
}
$this->arg = [
'crewType'=>$crewType,
'amount'=>$amount
'amountCrew'=>$amount
];
return true;
}
@@ -89,7 +89,7 @@ class che_징병 extends Command\GeneralCommand{
if($reqCrewType->id == $currCrewType->id){
$maxCrew -= $general->getVar('crew');
}
$reqCrew = Util::valueFit($this->arg['amount'], 100, $maxCrew);
$reqCrew = Util::valueFit($this->arg['amountCrew'], 100, $maxCrew);
$this->reqCrew = $reqCrew;
$this->reqCrewType = $reqCrewType;
$this->currCrewType = $currCrewType;