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]; }