diff --git a/hwe/sammo/WarUnit.php b/hwe/sammo/WarUnit.php index 5e9f78cf..91d2b422 100644 --- a/hwe/sammo/WarUnit.php +++ b/hwe/sammo/WarUnit.php @@ -269,6 +269,14 @@ class WarUnit{ return; } + function addTrainBonus(int $trainBonus){ + $this->trainBonus += $trainBonus; + } + + function addAtmosBonus(int $atmosBonus){ + $this->atmosBonus += $atmosBonus; + } + function getComputedTrain(){ return GameConst::$maxTrainByCommand; } diff --git a/hwe/sammo/WarUnitGeneral.php b/hwe/sammo/WarUnitGeneral.php index b39dbcc2..d94540a2 100644 --- a/hwe/sammo/WarUnitGeneral.php +++ b/hwe/sammo/WarUnitGeneral.php @@ -311,12 +311,12 @@ class WarUnitGeneral extends WarUnit{ } else if($item >= 14 && $item <= 16){ //의적주, 두강주, 보령압주 사용 - $this->addAtmos(5); + $this->addAtmosBonus(5); $itemActivated = true; } else if($item >= 19 && $item <= 20){ //춘화첩, 초선화 사용 - $this->addAtmos(7); + $this->addAtmosBonus(7); $itemActivated = true; } else if($item == 4){ @@ -327,12 +327,12 @@ class WarUnitGeneral extends WarUnit{ } else if($item >= 12 && $item <= 13){ //과실주, 이강주 사용 - $this->addTrain(5); + $this->addTrainBonus(5); $itemActivated = true; } else if($item >= 18 && $item <= 18){ //철벽서, 단결도 사용 - $this->addTrain(7); + $this->addTrainBonus(7); $itemActivated = true; }