전투 구현 반영

This commit is contained in:
2018-08-20 03:46:59 +09:00
parent ae8ccfe3a1
commit afdfcdd465
3 changed files with 22 additions and 32 deletions
-13
View File
@@ -41,12 +41,6 @@ class WarUnitCity extends WarUnit{
return $this->raw[$key];
}
function calcDamage():int{
$warPower = $this->getWarPower();
$warPower *= Util::randRange(0.9, 1.1);
return Util::round($warPower);
}
function increaseKilled(int $damage):int{
$this->killed += $damage;
return $this->killed;
@@ -84,13 +78,6 @@ class WarUnitCity extends WarUnit{
return true;
}
function addWin(){
}
function addLose(){
//NOTE: 도시 정복은 외부에서 처리함
}
function heavyDecreseWealth(){
$this->multiplyVar('agri', 0.5);
$this->multiplyVar('comm', 0.5);