버그 수정. getStatValue 성능 향상

This commit is contained in:
2019-10-09 15:57:18 +09:00
parent 10fd22ba81
commit 21f8b814e0
3 changed files with 76 additions and 35 deletions
+4 -4
View File
@@ -49,11 +49,11 @@ class che_징병 extends Command\GeneralCommand{
if(!key_exists('crewType', $this->arg)){
return false;
}
if(!key_exists('amountCrew', $this->arg)){
if(!key_exists('amount', $this->arg)){
return false;
}
$crewType = $this->arg['crewType'];
$amount = $this->arg['amountCrew'];
$amount = $this->arg['amount'];
if(!is_int($crewType)){
return false;
@@ -71,7 +71,7 @@ class che_징병 extends Command\GeneralCommand{
}
$this->arg = [
'crewType'=>$crewType,
'amountCrew'=>$amount
'amount'=>$amount
];
return true;
}
@@ -91,7 +91,7 @@ class che_징병 extends Command\GeneralCommand{
if($reqCrewType->id == $currCrewType->id){
$maxCrew -= $general->getVar('crew');
}
$reqCrew = Util::valueFit($this->arg['amountCrew'], 100, $maxCrew);
$reqCrew = Util::valueFit($this->arg['amount'], 100, $maxCrew);
$this->reqCrew = $reqCrew;
$this->reqCrewType = $reqCrewType;
$this->currCrewType = $currCrewType;