버그 수정

This commit is contained in:
2020-04-22 02:01:16 +09:00
parent da1273c135
commit 21a956eca8
14 changed files with 85 additions and 73 deletions
+2 -4
View File
@@ -47,7 +47,7 @@ class che_출병 extends Command\GeneralCommand{
$general = $this->generalObj;
$this->setCity();
$this->setNation(['war', 'gennum', 'tech', 'gold', 'rice']);
$this->setNation(['war', 'gennum', 'tech', 'gold', 'rice', 'color', 'type', 'level', 'capital']);
$this->setDestCity($this->arg['destCityID'], null);
[$reqGold, $reqRice] = $this->getCost();
@@ -196,9 +196,7 @@ class che_출병 extends Command\GeneralCommand{
$general->setResultTurn(new LastTurn(static::getName(), $this->arg));
$general->applyDB($db);
//TODO: 장기적으로 통합해야함
$attackerNation = $db->queryFirstRow('SELECT nation, name, color, type, level, capital, tech, gennum from nation WHERE nation = %i', $attackerNationID);
processWar($general, $attackerNation, $this->destCity);
processWar($general, $this->nation, $this->destCity);
tryUniqueItemLottery($general);
$general->applyDB($db);