From 26b415c48e6d0dd4bb33b4c5aba4c0b19dd8ad58 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 27 Jan 2020 16:20:19 -0300 Subject: MP Regen: Now it can level up and ratio wanders between 5:1 and 6:1 There's a catch: Weaker wands = better ratios. How will our intelligent players make up for the worsening ratio? %%O --- npc/magic/mpregen.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'npc/magic') diff --git a/npc/magic/mpregen.txt b/npc/magic/mpregen.txt index 18222fa24..f060ddb23 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 - .@ratio=max(40, 60-3); // 60-3: PLACEHOLDER for skill level calculation + .@lv=getskilllv(TMW2_MPREGEN); + .@ratio=max(40, 60-.@lv); .@mpheal=.@basehp*.@ratio/100; heal -.@basehp, .@mpheal; return; -- cgit v1.2.3-60-g2f50