대인 사살, 점령률 추가

This commit is contained in:
2020-05-30 03:05:03 +09:00
parent 3dc3dc8cbe
commit 279b0cd0c5
5 changed files with 33 additions and 1 deletions
+11
View File
@@ -118,6 +118,12 @@ class WarUnitGeneral extends WarUnit{
function addWin(){
$general = $this->general;
$general->increaseRankVar('killnum', 1);
$oppose = $this->getOppose();
if($oppose instanceof WarUnitCity){
$general->increaseRankVar('occupied', 1);
}
$general->multiplyVarWithLimit('atmos', 1.1, null, GameConst::$maxAtmosByWar);
$this->addStatExp(1);
@@ -295,6 +301,11 @@ class WarUnitGeneral extends WarUnit{
$general->increaseRankVar('killcrew', $this->killed);
$general->increaseRankVar('deathcrew', $this->dead);
if($this->getOppose() instanceof WarUnitGeneral){
$general->increaseRankVar('killcrew_person', $this->killed);
$general->increaseRankVar('deathcrew_person', $this->dead);
}
$general->updateVar('rice', Util::round($general->getVar('rice')));
$general->updateVar('experience', Util::round($general->getVar('experience')));