버그 수정
This commit is contained in:
@@ -86,7 +86,7 @@ class che_사기진작 extends Command\GeneralCommand{
|
||||
$exp = $general->onPreGeneralStatUpdate($general, 'experience', $exp);
|
||||
$ded = $general->onPreGeneralStatUpdate($general, 'dedication', $ded);
|
||||
|
||||
$general->increaseVarWithLimit('atmos', $score, 0, GameConst::$maAtmosByCommand);
|
||||
$general->increaseVarWithLimit('atmos', $score, 0, GameConst::$maxAtmosByCommand);
|
||||
$general->setVar('train', $sideEffect);
|
||||
|
||||
$general->addDex($general->getCrewTypeObj(), $score, false);
|
||||
|
||||
@@ -48,8 +48,7 @@ class che_출병 extends Command\GeneralCommand{
|
||||
|
||||
$this->setCity();
|
||||
$this->setNation(['war', 'gennum', 'tech', 'gold', 'rice']);
|
||||
$this->setDestCity($this->arg['destCityID'], []);
|
||||
$this->setDestNation($this->arg['destNationID'], ['nation' ,'level','name','capital','gennum','tech','type','gold','rice']);
|
||||
$this->setDestCity($this->arg['destCityID'], ['city', 'name', 'nation']);
|
||||
|
||||
[$reqGold, $reqRice] = $this->getCost();
|
||||
$relYear = $this->env['year'] - $this->env['startyear'];
|
||||
@@ -67,7 +66,7 @@ class che_출병 extends Command\GeneralCommand{
|
||||
}
|
||||
|
||||
public function getCost():array{
|
||||
return [0, Util::round($this->general->getVar('crew')/100)];
|
||||
return [0, Util::round($this->generalObj->getVar('crew')/100)];
|
||||
}
|
||||
|
||||
public function getPreReqTurn():int{
|
||||
@@ -104,7 +103,7 @@ class che_출병 extends Command\GeneralCommand{
|
||||
|
||||
$defenderCityName = $this->destCity['name'];
|
||||
$defenderCityID = $this->destCity['city'];
|
||||
$josaRo = JosaUtil::pick($destCityName, '로');
|
||||
$josaRo = JosaUtil::pick($defenderCityName, '로');
|
||||
|
||||
$logger = $general->getLogger();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user