From 919c44c7277a4ab65e359dbc3ffcc03e3a2a2bb5 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sun, 20 Feb 2022 03:08:24 +0900 Subject: [PATCH] =?UTF-8?q?game,feat:=20=EC=A0=84=ED=88=AC=EB=A0=A5?= =?UTF-8?q?=EB=B3=B4=EC=A0=95=20=EA=B4=80=EB=A0=A8=20=EC=9C=A0=EB=8B=88?= =?UTF-8?q?=ED=81=AC=20=EB=8F=84=EA=B5=AC=20=EC=B6=94=EA=B0=80=20-=20?= =?UTF-8?q?=EC=A7=81=EC=A0=91=20=EC=A0=84=ED=88=AC=EB=A0=A5=EB=B3=B4?= =?UTF-8?q?=EC=A0=95=EC=9D=84=20=EC=9C=84=ED=95=9C=20WarUnitTrigger=20?= =?UTF-8?q?=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 | 31 ++++++++++++++++++++ hwe/sammo/ActionItem/che_상성보정_과실주.php | 31 ++++++++++++++++++++ hwe/sammo/ActionItem/che_훈련_과실주.php | 4 ++- hwe/sammo/WarUnitTrigger/전투력보정.php | 24 +++++++++++++++ 4 files changed, 89 insertions(+), 1 deletion(-) create mode 100644 hwe/sammo/ActionItem/che_광기_상편.php create mode 100644 hwe/sammo/ActionItem/che_상성보정_과실주.php create mode 100644 hwe/sammo/WarUnitTrigger/전투력보정.php diff --git a/hwe/sammo/ActionItem/che_광기_상편.php b/hwe/sammo/ActionItem/che_광기_상편.php new file mode 100644 index 00000000..3e48cd4c --- /dev/null +++ b/hwe/sammo/ActionItem/che_광기_상편.php @@ -0,0 +1,31 @@ +getGeneral()->getLeadership(); + $crew = $unit->getGeneral()->getVar('crew'); + + $crewRatio = Util::valueFit($crew / ($leadership * 100), 0, 1); + return new WarUnitTriggerCaller( + new 전투력보정(1 + 0.5 * (1 - $crewRatio)) + ); + } +} diff --git a/hwe/sammo/ActionItem/che_상성보정_과실주.php b/hwe/sammo/ActionItem/che_상성보정_과실주.php new file mode 100644 index 00000000..da416aad --- /dev/null +++ b/hwe/sammo/ActionItem/che_상성보정_과실주.php @@ -0,0 +1,31 @@ +getOppose(); + if($oppose === null){ + return null; + } + $attackCoef = $unit->getCrewType()->getAttackCoef($oppose->getCrewType()); + if($attackCoef <= 1){ + return null; + } + return new WarUnitTriggerCaller( + new 전투력보정(1.1, 0.9) + ); + } +} diff --git a/hwe/sammo/ActionItem/che_훈련_과실주.php b/hwe/sammo/ActionItem/che_훈련_과실주.php index 7bc55f0e..c45ba90b 100644 --- a/hwe/sammo/ActionItem/che_훈련_과실주.php +++ b/hwe/sammo/ActionItem/che_훈련_과실주.php @@ -17,4 +17,6 @@ class che_훈련_과실주 extends \sammo\BaseItem{ } return $value; } -} \ No newline at end of file +} + +//NOTE: 구버전 \ No newline at end of file diff --git a/hwe/sammo/WarUnitTrigger/전투력보정.php b/hwe/sammo/WarUnitTrigger/전투력보정.php new file mode 100644 index 00000000..b40a85fe --- /dev/null +++ b/hwe/sammo/WarUnitTrigger/전투력보정.php @@ -0,0 +1,24 @@ +multiplyWarPowerMultiply($this->attackerWarPowerMultiplier); + $oppose->multiplyWarPowerMultiply($this->defenderWarPowerMultiplier); + + $this->processConsumableItem(); + + return true; + } +} \ No newline at end of file