game,feat: 조달 효율 변경 trigger 추가, 조달 유니크 추가

This commit is contained in:
2022-02-20 04:01:03 +09:00
parent b692eccd08
commit f014dae6af
2 changed files with 33 additions and 4 deletions
@@ -0,0 +1,22 @@
<?php
namespace sammo\ActionItem;
use \sammo\iAction;
use \sammo\General;
use sammo\Util;
class che_조달_주판 extends \sammo\BaseItem{
protected $rawName = '주판';
protected $name = '주판(조달)';
protected $info = '[내정] 물자조달 성공 확률 +20%p, 물자조달 획득량 +100%p';
protected $cost = 200;
protected $consumable = false;
public function onCalcStrategic(string $turnType, string $varType, $value){
if($turnType === '조달'){
if($varType == 'success') return $value + 0.2;
if($varType == 'score') return $value * 2;
}
return $value;
}
}