From e52bb02998f61999c80493104a7f3fbde78e6d99 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 22 Jun 2020 01:59:18 -0300 Subject: [skip ci] Don't forget shields D: --- npc/functions/hub.txt | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'npc/functions') diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt index b2c05c6a9..eade2a4d5 100644 --- a/npc/functions/hub.txt +++ b/npc/functions/hub.txt @@ -406,6 +406,9 @@ function script HUB_SkillInvoke { case TMW2_BRAWLING: // 75x3 = 225 .@PW=70+(5*@skillLv); + // Using a shield, so power is halved + if (getequipid(EQI_HAND_L) > 0) + .@PW=.@PW/2; harm(@skillTarget, AdjustAttackpower(.@PW), HARM_PHYS, Ele_Neutral); harm(@skillTarget, AdjustAttackpower(.@PW), HARM_PHYS, Ele_Neutral); harm(@skillTarget, AdjustAttackpower(.@PW), HARM_PHYS, Ele_Neutral); @@ -413,6 +416,9 @@ function script HUB_SkillInvoke { case TMW2_BEARSTRIKE: // 60x5 = 300 .@PW=55+(5*@skillLv); + // Using a shield, so power is halved + if (getequipid(EQI_HAND_L) > 0) + .@PW=.@PW/2; harm(@skillTarget, AdjustAttackpower(.@PW), HARM_PHYS, Ele_Neutral); harm(@skillTarget, AdjustAttackpower(.@PW), HARM_PHYS, Ele_Neutral); harm(@skillTarget, AdjustAttackpower(.@PW), HARM_PHYS, Ele_Neutral); @@ -422,6 +428,9 @@ function script HUB_SkillInvoke { case TMW2_ALLINONE: // 45x8 = 360 .@PW=40+(5*@skillLv); + // Using a shield, so power is halved + if (getequipid(EQI_HAND_L) > 0) + .@PW=.@PW/2; harm(@skillTarget, AdjustAttackpower(.@PW), HARM_PHYS, Ele_Neutral); harm(@skillTarget, AdjustAttackpower(.@PW), HARM_PHYS, Ele_Fire); harm(@skillTarget, AdjustAttackpower(.@PW), HARM_PHYS, Ele_Water); -- cgit v1.2.3-70-g09d2