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