diff --git a/hwe/sammo/ActionItem/che_격노_구정신단경.php b/hwe/sammo/ActionItem/che_격노_구정신단경.php new file mode 100644 index 00000000..f5fece19 --- /dev/null +++ b/hwe/sammo/ActionItem/che_격노_구정신단경.php @@ -0,0 +1,30 @@ +hasActivatedSkillOnLog('격노'); + return [1 + 0.2*$activatedCnt, 1]; + } + + public function getBattlePhaseSkillTriggerList(WarUnit $unit):?WarUnitTriggerCaller{ + return new WarUnitTriggerCaller( + new che_격노시도($unit, che_격노시도::TYPE_ITEM), + new che_격노발동($unit) + ); + } +} \ 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..839b9275 --- /dev/null +++ b/hwe/sammo/ActionItem/che_공성_묵자.php @@ -0,0 +1,24 @@ +getOppose() instanceof WarUnitCity){ + return [1.5, 1]; + } + return [1, 1]; + } +} \ No newline at end of file diff --git a/hwe/sammo/ActionItem/che_반계_백우선.php b/hwe/sammo/ActionItem/che_반계_백우선.php index ce9a4542..46d3ffd4 100644 --- a/hwe/sammo/ActionItem/che_반계_백우선.php +++ b/hwe/sammo/ActionItem/che_반계_백우선.php @@ -14,7 +14,7 @@ class che_반계_백우선 extends \sammo\BaseItem{ protected $rawName = '백우선'; protected $name = '백우선(반계)'; - protected $info = '[전투] 상대의 계략 성공 확률 -10%p, 상대의 계략을 20% 확률로 되돌림'; + protected $info = '[전투] 상대의 계략 성공 확률 -10%p, 상대의 계략을 30% 확률로 되돌림, 반목 성공시 대미지 추가(+60% → +100%), 소모 군량 +10%'; protected $cost = 200; protected $consumable = false; @@ -26,9 +26,19 @@ class che_반계_백우선 extends \sammo\BaseItem{ return $value - $debuff; } + public function onCalcStat(General $general, string $statName, $value, $aux=null){ + if($statName == 'killRice'){ + return $value * 1.1; + } + if($statName === 'warMagicSuccessDamage' && $aux === '반목'){ + return $value + 0.4; + } + return $value; + } + public function getBattlePhaseSkillTriggerList(WarUnit $unit):?WarUnitTriggerCaller{ return new WarUnitTriggerCaller( - new che_반계시도($unit, BaseWarUnitTrigger::TYPE_ITEM +BaseWarUnitTrigger::TYPE_DEDUP_TYPE_BASE*301, 0.2), + new che_반계시도($unit, BaseWarUnitTrigger::TYPE_ITEM +BaseWarUnitTrigger::TYPE_DEDUP_TYPE_BASE*301, 0.3), new che_반계발동($unit) ); } diff --git a/hwe/sammo/ActionItem/che_위압_조목삭.php b/hwe/sammo/ActionItem/che_위압_조목삭.php new file mode 100644 index 00000000..1f8c0ea1 --- /dev/null +++ b/hwe/sammo/ActionItem/che_위압_조목삭.php @@ -0,0 +1,25 @@ +getVar('leadership') * 0.25; + } + return $value; + } +} \ 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..b29a1301 --- /dev/null +++ b/hwe/sammo/ActionItem/che_척사_오약진형도.php @@ -0,0 +1,23 @@ +getOppose()->getCrewType(); + if($opposeCrewType->reqCities || $opposeCrewType->reqRegions){ + return [1.15, 0.85]; + } + return [1, 1]; + } +} \ 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..1c3ec5ea --- /dev/null +++ b/hwe/sammo/ActionItem/che_환술_논어집해.php @@ -0,0 +1,28 @@ +getVar('leadership') * 0.25; } return $value; }