fix: 내정 도구 유니크가 동작하지 않는 버그 수정

This commit is contained in:
2022-07-09 23:09:09 +09:00
parent 8a1f8f8e2c
commit 73a7bf5a61
2 changed files with 2 additions and 2 deletions
@@ -12,7 +12,7 @@ class che_내정_납금박산로 extends \sammo\BaseItem{
protected $cost = 200;
protected $consumable = false;
public function onCalcStrategic(string $turnType, string $varType, $value){
public function onCalcDomestic(string $turnType, string $varType, float $value, $aux=null): float{
if(in_array($turnType, ['상업', '농업', '기술', '성벽', '수비', '치안', '민심', '인구'])){
if($varType == 'success') return $value + 0.15;
}
+1 -1
View File
@@ -12,7 +12,7 @@ class che_조달_주판 extends \sammo\BaseItem{
protected $cost = 200;
protected $consumable = false;
public function onCalcStrategic(string $turnType, string $varType, $value){
public function onCalcDomestic(string $turnType, string $varType, float $value, $aux=null): float{
if($turnType === '조달'){
if($varType == 'success') return $value + 0.2;
if($varType == 'score') return $value * 2;