game: 성벽 공격 시 소모 쌀 20% 감소

This commit is contained in:
2022-08-21 17:52:25 +09:00
parent 1d20eb3c3e
commit b517000650
+3
View File
@@ -271,6 +271,9 @@ class WarUnitGeneral extends WarUnit
if (!$this->isAttacker) {
$rice *= 0.8;
}
if ($this->oppose instanceof WarUnitCity){
$rice *= 0.8;
}
$rice *= $this->crewType->rice;
$rice *= getTechCost($this->getNationVar('tech'));