From e485d03279d048fd6ba8fa32c13d56a441fb4c92 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 26 Jan 2020 16:52:48 -0300 Subject: Prepare MPRegen skill to it "support" levels, but without actually supporting 'em. --- npc/magic/mpregen.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/npc/magic/mpregen.txt b/npc/magic/mpregen.txt index 1a45de552..18222fa24 100644 --- a/npc/magic/mpregen.txt +++ b/npc/magic/mpregen.txt @@ -11,7 +11,8 @@ function script SK_mpregen { // How much MP is that worth? // Well, 400HP:120MP so base formula is 4:1 // Let's have a 50% penalty, so, 6:1 - .@mpheal=.@basehp/6; + .@ratio=max(40, 60-3); // 60-3: PLACEHOLDER for skill level calculation + .@mpheal=.@basehp*.@ratio/100; heal -.@basehp, .@mpheal; return; } -- cgit v1.2.3-60-g2f50