diff --git a/hwe/sammo/ActionItem/che_계략_삼략.php b/hwe/sammo/ActionItem/che_계략_삼략.php index 48f03bf7..d119775a 100644 --- a/hwe/sammo/ActionItem/che_계략_삼략.php +++ b/hwe/sammo/ActionItem/che_계략_삼략.php @@ -1,22 +1,32 @@ -[전투] 계략 시도 확률 +10%p, 계략 성공 확률 +10%p'; + protected $cost = 200; + protected $consumable = false; + + public function onCalcDomestic(string $turnType, string $varType, float $value, $aux=null):float{ + if($turnType == '계략'){ + if($varType == 'success') return $value + 0.2; + } + + return $value; + } + + public function onCalcStat(General $general, string $statName, $value, $aux=null){ + if($statName === 'warMagicTrialProb'){ + return $value + 0.1; + } + if($statName === 'warMagicSuccessProb'){ + return $value + 0.1; + } + return $value; + } } \ No newline at end of file diff --git a/hwe/sammo/ActionItem/che_계략_육도.php b/hwe/sammo/ActionItem/che_계략_육도.php index cb8fe14c..f4f2726a 100644 --- a/hwe/sammo/ActionItem/che_계략_육도.php +++ b/hwe/sammo/ActionItem/che_계략_육도.php @@ -1,22 +1,32 @@ -[전투] 계략 시도 확률 +10%p, 계략 성공 확률 +10%p'; + protected $cost = 200; + protected $consumable = false; + + public function onCalcDomestic(string $turnType, string $varType, float $value, $aux=null):float{ + if($turnType == '계략'){ + if($varType == 'success') return $value + 0.2; + } + + return $value; + } + + public function onCalcStat(General $general, string $statName, $value, $aux=null){ + if($statName === 'warMagicTrialProb'){ + return $value + 0.1; + } + if($statName === 'warMagicSuccessProb'){ + return $value + 0.1; + } + return $value; + } } \ No newline at end of file diff --git a/hwe/sammo/ActionItem/che_계략_이추.php b/hwe/sammo/ActionItem/che_계략_이추.php index b4174bdb..68380391 100644 --- a/hwe/sammo/ActionItem/che_계략_이추.php +++ b/hwe/sammo/ActionItem/che_계략_이추.php @@ -1,31 +1,31 @@ -[전투] 페이즈마다 40% 확률로 치료 발동(아군 피해 1/3 감소, 부상 회복)'; + protected $cost = 200; + protected $consumable = false; + + public function getPreTurnExecuteTriggerList(General $general):?GeneralTriggerCaller{ + return new GeneralTriggerCaller( + new GeneralTrigger\che_도시치료($general) + ); + } + + public function getBattlePhaseSkillTriggerList(\sammo\WarUnit $unit): ?WarUnitTriggerCaller + { + return new WarUnitTriggerCaller( + new che_전투치료시도($unit, BaseWarUnitTrigger::TYPE_ITEM), + new che_전투치료발동($unit, BaseWarUnitTrigger::TYPE_ITEM) + + ); + } +} \ No newline at end of file diff --git a/hwe/sammo/ActionItem/che_저격_매화수전.php b/hwe/sammo/ActionItem/che_저격_매화수전.php new file mode 100644 index 00000000..562622b6 --- /dev/null +++ b/hwe/sammo/ActionItem/che_저격_매화수전.php @@ -0,0 +1,26 @@ + [ 'che_치료_환약'=>0, 'che_저격_수극'=>0, 'che_사기_탁주'=>0, 'che_훈련_청주'=>0, 'che_계략_이추'=>0, 'che_계략_향낭'=>0, - - 'che_치료_오석산'=>1, 'che_치료_무후행군'=>1, 'che_치료_도소연명'=>1, - 'che_치료_칠엽청점'=>1, 'che_치료_정력견혈'=>1, - 'che_훈련_과실주'=>1, 'che_훈련_이강주'=>1, - 'che_사기_의적주'=>1, 'che_사기_두강주'=>1, 'che_사기_보령압주'=>1, - 'che_훈련_철벽서'=>1, 'che_훈련_단결도'=>1, 'che_사기_춘화첩'=>1, 'che_사기_초선화'=>1, + 'che_의술_청낭서'=>1, 'che_의술_태평청령'=>1, 'che_의술_상한잡병론'=>1, + 'che_저격_매화수전'=>1, 'che_저격_비도'=>1, 'che_계략_육도'=>1, 'che_계략_삼략'=>1, - 'che_의술_청낭서'=>1, 'che_의술_태평청령'=>1, + 'che_반계_백우선'=>1, 'che_반계_파초선'=>1, + 'che_행동_서촉지형도'=>1, + + + 'che_훈련_과실주'=>1, 'che_훈련_이강주'=>1, 'che_사기_두강주'=>1, 'che_사기_보령압주'=>1, + 'che_훈련_철벽서'=>1, 'che_훈련_단결도'=>1, 'che_사기_춘화첩'=>1, 'che_사기_초선화'=>1, 'che_회피_태평요술'=>1, 'che_회피_둔갑천서'=>1, ] ];