summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-01-26 16:52:48 -0300
committerJesusaves <cpntb1@ymail.com>2020-01-26 16:52:48 -0300
commite485d03279d048fd6ba8fa32c13d56a441fb4c92 (patch)
treeb28a467023a600f6c4ebfe5b33ee4e877c0466dd
parent113e72c605d552f28d6ad7215f4f95527929a582 (diff)
downloadserverdata-e485d03279d048fd6ba8fa32c13d56a441fb4c92.tar.gz
serverdata-e485d03279d048fd6ba8fa32c13d56a441fb4c92.tar.bz2
serverdata-e485d03279d048fd6ba8fa32c13d56a441fb4c92.tar.xz
serverdata-e485d03279d048fd6ba8fa32c13d56a441fb4c92.zip
Prepare MPRegen skill to it "support" levels, but without actually supporting 'em.
-rw-r--r--npc/magic/mpregen.txt3
1 files changed, 2 insertions, 1 deletions
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;
}