From bc568e2083cb8cd93d5c90a63532b896595abc5b Mon Sep 17 00:00:00 2001 From: hide_d Date: Sun, 20 Feb 2022 03:37:15 +0900 Subject: [PATCH] =?UTF-8?q?game:=20=EC=A0=84=ED=88=AC=20=ED=8A=B9=EA=B8=B0?= =?UTF-8?q?=20=EB=B0=98=EC=98=81=20=EC=9C=A0=EB=8B=88=ED=81=AC=20=EB=8F=84?= =?UTF-8?q?=EA=B5=AC=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/ActionItem/che_격노_구정신단경.php | 30 ++++++++++++++++++++ hwe/sammo/ActionItem/che_공성_묵자.php | 24 ++++++++++++++++ hwe/sammo/ActionItem/che_반계_백우선.php | 14 +++++++-- hwe/sammo/ActionItem/che_위압_조목삭.php | 25 ++++++++++++++++ hwe/sammo/ActionItem/che_집중_전국책.php | 25 ++++++++++++++++ hwe/sammo/ActionItem/che_징병_낙주.php | 30 ++++++++++++++++++++ hwe/sammo/ActionItem/che_척사_오약진형도.php | 23 +++++++++++++++ hwe/sammo/ActionItem/che_환술_논어집해.php | 28 ++++++++++++++++++ hwe/sammo/ActionItem/event_전투특기_격노.php | 2 +- hwe/sammo/ActionItem/event_전투특기_징병.php | 4 +-- 10 files changed, 200 insertions(+), 5 deletions(-) create mode 100644 hwe/sammo/ActionItem/che_격노_구정신단경.php create mode 100644 hwe/sammo/ActionItem/che_공성_묵자.php create mode 100644 hwe/sammo/ActionItem/che_위압_조목삭.php create mode 100644 hwe/sammo/ActionItem/che_집중_전국책.php create mode 100644 hwe/sammo/ActionItem/che_징병_낙주.php create mode 100644 hwe/sammo/ActionItem/che_척사_오약진형도.php create mode 100644 hwe/sammo/ActionItem/che_환술_논어집해.php 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; }