From f9d5d190d5f1e34af6bc790bf2da526daeba8ee2 Mon Sep 17 00:00:00 2001 From: hide_d Date: Thu, 23 Aug 2018 16:21:18 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9C=A0=EB=8B=88=ED=81=AC=20=ED=9B=88?= =?UTF-8?q?=EB=A0=A8,=EC=82=AC=EA=B8=B0=20=ED=85=9C=EC=97=90=EC=84=9C=20?= =?UTF-8?q?=ED=9B=88=EB=A0=A8,=20=EC=82=AC=EA=B8=B0=EA=B0=80=20=EC=98=81?= =?UTF-8?q?=EA=B5=AC=EC=A0=81=EC=9C=BC=EB=A1=9C=20=EC=98=A4=EB=A5=B4?= =?UTF-8?q?=EB=8A=94=20=EB=B2=84=EA=B7=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/WarUnit.php | 8 ++++++++ hwe/sammo/WarUnitGeneral.php | 8 ++++---- 2 files changed, 12 insertions(+), 4 deletions(-) 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; }