전투 종료 코드 구현

This commit is contained in:
2018-08-20 22:20:59 +09:00
parent d9c1530651
commit c32ce5e795
4 changed files with 119 additions and 32 deletions
+3 -1
View File
@@ -18,7 +18,8 @@ class WarUnitGeneral extends WarUnit{
$this->getVar('no'),
$this->getVar('nation'),
$year,
$month
$month,
false
);
$this->crewType = GameUnitConst::byID($this->getVar('crewtype'));
@@ -909,6 +910,7 @@ class WarUnitGeneral extends WarUnit{
}
$db->update('general', $updateVals, 'no=%i', $this->raw['no']);
$this->getLogger()->flush();
return $db->affectedRows() > 0;
}