From c9f28e27d264feebcc64cb5a59128bf0cbc9a418 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sun, 26 Dec 2021 20:06:39 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=86=8C=EB=AA=A8=20=EA=B5=B0=EB=9F=89?= =?UTF-8?q?=20=EB=B3=B4=EC=A0=95=EC=9D=84=20=EC=9C=84=ED=95=9C=20trigger?= =?UTF-8?q?=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/Command/General/che_징병.php | 1 + hwe/sammo/WarUnitGeneral.php | 1 + 2 files changed, 2 insertions(+) diff --git a/hwe/sammo/Command/General/che_징병.php b/hwe/sammo/Command/General/che_징병.php index e166d78a..fd271678 100644 --- a/hwe/sammo/Command/General/che_징병.php +++ b/hwe/sammo/Command/General/che_징병.php @@ -150,6 +150,7 @@ class che_징병 extends Command\GeneralCommand $reqGold = $this->generalObj->onCalcDomestic('징병', 'cost', $reqGold, ['armType' => $this->reqCrewType->armType]); $reqGold *= static::$costOffset; $reqRice = $this->maxCrew / 100; + $reqRice = $this->generalObj->onCalcDomestic('징병', 'rice', $reqRice, ['armType' => $this->reqCrewType->armType]); $reqGold = Util::round($reqGold); $reqRice = Util::round($reqRice); diff --git a/hwe/sammo/WarUnitGeneral.php b/hwe/sammo/WarUnitGeneral.php index 781fa579..a11455e6 100644 --- a/hwe/sammo/WarUnitGeneral.php +++ b/hwe/sammo/WarUnitGeneral.php @@ -286,6 +286,7 @@ class WarUnitGeneral extends WarUnit $rice *= $this->crewType->rice; $rice *= getTechCost($this->getNationVar('tech')); + $rice = $this->general->onCalcStat($this->general, 'killRice', $rice); $general->increaseVarWithLimit('rice', -$rice, 0);