feat: 소모 군량 보정을 위한 trigger 추가
This commit is contained in:
@@ -150,6 +150,7 @@ class che_징병 extends Command\GeneralCommand
|
|||||||
$reqGold = $this->generalObj->onCalcDomestic('징병', 'cost', $reqGold, ['armType' => $this->reqCrewType->armType]);
|
$reqGold = $this->generalObj->onCalcDomestic('징병', 'cost', $reqGold, ['armType' => $this->reqCrewType->armType]);
|
||||||
$reqGold *= static::$costOffset;
|
$reqGold *= static::$costOffset;
|
||||||
$reqRice = $this->maxCrew / 100;
|
$reqRice = $this->maxCrew / 100;
|
||||||
|
$reqRice = $this->generalObj->onCalcDomestic('징병', 'rice', $reqRice, ['armType' => $this->reqCrewType->armType]);
|
||||||
|
|
||||||
$reqGold = Util::round($reqGold);
|
$reqGold = Util::round($reqGold);
|
||||||
$reqRice = Util::round($reqRice);
|
$reqRice = Util::round($reqRice);
|
||||||
|
|||||||
@@ -286,6 +286,7 @@ class WarUnitGeneral extends WarUnit
|
|||||||
|
|
||||||
$rice *= $this->crewType->rice;
|
$rice *= $this->crewType->rice;
|
||||||
$rice *= getTechCost($this->getNationVar('tech'));
|
$rice *= getTechCost($this->getNationVar('tech'));
|
||||||
|
$rice = $this->general->onCalcStat($this->general, 'killRice', $rice);
|
||||||
|
|
||||||
$general->increaseVarWithLimit('rice', -$rice, 0);
|
$general->increaseVarWithLimit('rice', -$rice, 0);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user