전투 구현 반영
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user