From 2d0c3ef8817a776e31d89c67b549aa8abc330ccd Mon Sep 17 00:00:00 2001 From: hide_d Date: Mon, 7 Oct 2019 00:17:17 +0900 Subject: [PATCH] =?UTF-8?q?=EC=86=8C=EB=B9=84=20=EA=B8=88=EC=95=A1=20?= =?UTF-8?q?=EB=B0=98=EC=98=AC=EB=A6=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/Command/General/che_상업투자.php | 2 +- hwe/sammo/Command/General/che_정착장려.php | 2 +- hwe/sammo/Command/General/che_징병.php | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/hwe/sammo/Command/General/che_상업투자.php b/hwe/sammo/Command/General/che_상업투자.php index 86432aca..128c7142 100644 --- a/hwe/sammo/Command/General/che_상업투자.php +++ b/hwe/sammo/Command/General/che_상업투자.php @@ -79,7 +79,7 @@ class che_상업투자 extends Command\GeneralCommand{ public function getCost():array{ $develCost = $this->env['develcost']; - $reqGold = $this->generalObj->onCalcDomestic(static::$actionKey, 'cost', $develCost); + $reqGold = Util::round($this->generalObj->onCalcDomestic(static::$actionKey, 'cost', $develCost)); $reqRice = 0; return [$reqGold, $reqRice]; diff --git a/hwe/sammo/Command/General/che_정착장려.php b/hwe/sammo/Command/General/che_정착장려.php index abcc730a..5d5eceaf 100644 --- a/hwe/sammo/Command/General/che_정착장려.php +++ b/hwe/sammo/Command/General/che_정착장려.php @@ -58,7 +58,7 @@ class che_정착장려 extends Command\GeneralCommand{ public function getCost():array{ $develCost = $this->env['develcost'] * 2; $reqGold = 0; - $reqRice = $this->generalObj->onCalcDomestic(static::$actionKey, 'cost', $develCost); + $reqRice = Util::round($this->generalObj->onCalcDomestic(static::$actionKey, 'cost', $develCost)); return [$reqGold, $reqRice]; } diff --git a/hwe/sammo/Command/General/che_징병.php b/hwe/sammo/Command/General/che_징병.php index f53e654d..de695ddd 100644 --- a/hwe/sammo/Command/General/che_징병.php +++ b/hwe/sammo/Command/General/che_징병.php @@ -119,6 +119,9 @@ class che_징병 extends Command\GeneralCommand{ $reqGold = $this->generalObj->onCalcDomestic('징병', 'cost', $reqGold, ['armType'=>$this->reqCrewType->armType]); $reqGold *= static::$costOffset; $reqRice = $this->reqCrew / 100; + + $reqGold = Util::round($reqGold); + $reqRice = Util::round($reqRice); return [$reqGold, $reqRice]; }