대인 사살, 점령률 추가
This commit is contained in:
@@ -46,7 +46,7 @@ class General implements iAction{
|
||||
'tsw'=>1, 'tsd'=>1, 'tsl'=>1, 'tsg'=>1, 'tsp'=>1,
|
||||
'tiw'=>1, 'tid'=>1, 'til'=>1, 'tig'=>1, 'tip'=>1,
|
||||
'betwin'=>1, 'betgold'=>1, 'betwingold'=>1,
|
||||
'kill_realcrew'=>1, 'death_realcrew'=>1,
|
||||
'killcrew_person'=>1, 'deathcrew_person'=>1,
|
||||
'occupied'=>1,
|
||||
];
|
||||
|
||||
|
||||
@@ -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')));
|
||||
|
||||
Reference in New Issue
Block a user