From 04552d3ccbc70dfea3274a5ee31c2721767d03e6 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 2 Jan 2022 09:13:39 -0300 Subject: MP Regen now halts regeneration. Healing skills rules changes depending on this - First Aid: 80% penalty - Healing: 67% penalty against self, otherwise no penalty - Magnus Heal: No penalty PS. Healing from items or other sources (players, little wonders, etc.) intact --- npc/015-3-3/boss.txt | 2 +- npc/functions/hub.txt | 6 ++++++ npc/magic/mpregen.txt | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) (limited to 'npc') diff --git a/npc/015-3-3/boss.txt b/npc/015-3-3/boss.txt index 09e4459e8..d71975eda 100644 --- a/npc/015-3-3/boss.txt +++ b/npc/015-3-3/boss.txt @@ -18,7 +18,7 @@ getexp 1000, 320; compareandsetq HurnscaldQuest_PirateCave, 7, 8; } else { - TreasureBox(100); // 1% extra chance + TreasureBox(50); // 0.50% extra chance } specialeffect(.dir == 0 ? 24 : 25, AREA, getnpcid()); // closed ? opening : closing close; diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt index 144ae2270..bd96481f2 100644 --- a/npc/functions/hub.txt +++ b/npc/functions/hub.txt @@ -598,11 +598,17 @@ function script HUB_SkillInvoke { .@PW=90+(10*@skillLv); // First aid only works on you, so .@heal=max(AdjustSpellpower(.@PW), AdjustAttackpower(.@PW)); + // Penalty if you have HALT_REGEN on (-80%) + if (getstatus(SC_HALT_REGENERATION)) + .@heal /= 5; heal .@heal, 0; GetManaExp(TMW2_HEALING, 1); break; case TMW2_HEALING: .@PW=130+(20*@skillLv); + // Penalty if you have HALT_REGEN on and trying to self heal + if (getstatus(SC_HALT_REGENERATION) && @skillTarget == getcharid(3)) + .@heal /= 3; harm(@skillTarget, -AdjustSpellpower(.@PW), HARM_MISC); GetManaExp(TMW2_HEALING, 2); break; diff --git a/npc/magic/mpregen.txt b/npc/magic/mpregen.txt index f060ddb23..e58af3c87 100644 --- a/npc/magic/mpregen.txt +++ b/npc/magic/mpregen.txt @@ -15,6 +15,8 @@ function script SK_mpregen { .@ratio=max(40, 60-.@lv); .@mpheal=.@basehp*.@ratio/100; heal -.@basehp, .@mpheal; + // Temporarily block healing and regeneration skills + SC_Bonus(1+.@lv, SC_HALT_REGENERATION, 1); return; } -- cgit v1.2.3-60-g2f50