summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-01-27 16:20:19 -0300
committerJesusaves <cpntb1@ymail.com>2020-01-27 16:20:19 -0300
commit26b415c48e6d0dd4bb33b4c5aba4c0b19dd8ad58 (patch)
tree02b9276cb6df66a0a86aab7e49962f10c65a1e09
parentbc964a6145180d7bbda5696ab5ea051494cbe4bb (diff)
downloadserverdata-26b415c48e6d0dd4bb33b4c5aba4c0b19dd8ad58.tar.gz
serverdata-26b415c48e6d0dd4bb33b4c5aba4c0b19dd8ad58.tar.bz2
serverdata-26b415c48e6d0dd4bb33b4c5aba4c0b19dd8ad58.tar.xz
serverdata-26b415c48e6d0dd4bb33b4c5aba4c0b19dd8ad58.zip
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
-rw-r--r--db/re/item_db.conf12
-rw-r--r--db/re/skill_db.conf2
-rw-r--r--npc/magic/mpregen.txt3
3 files changed, 9 insertions, 8 deletions
diff --git a/db/re/item_db.conf b/db/re/item_db.conf
index 8792bb491..7940f7998 100644
--- a/db/re/item_db.conf
+++ b/db/re/item_db.conf
@@ -13560,7 +13560,7 @@ item_db: (
Script: <"
//bonus bAttack2,-100;
bonus bMaxSP,10;
- skill TMW2_MPREGEN, 1;
+ addtoskill(TMW2_MPREGEN, 5, 2);
bonus bDef,-32767;
">
},
@@ -13598,7 +13598,7 @@ item_db: (
Script: <"
//bonus bAttack2,-150;
bonus bMaxSP,20;
- skill TMW2_MPREGEN, 1;
+ addtoskill(TMW2_MPREGEN, 4, 2);
bonus bMaxHPrate, -8;
bonus bDef,-32767;
">
@@ -13637,7 +13637,7 @@ item_db: (
Script: <"
//bonus bAttack2,-200;
bonus bMaxSP,30;
- skill TMW2_MPREGEN, 1;
+ addtoskill(TMW2_MPREGEN, 3, 2);
bonus bMaxHPrate, -12;
bonus bDef,-32767;
">
@@ -13676,7 +13676,7 @@ item_db: (
Script: <"
//bonus bAttack2,-250;
bonus bMaxSP,40;
- skill TMW2_MPREGEN, 1;
+ addtoskill(TMW2_MPREGEN, 2, 2);
bonus bMaxHPrate, -16;
bonus bDef,-32767;
">
@@ -13715,7 +13715,7 @@ item_db: (
Script: <"
//bonus bAttack2,-300;
bonus bMaxSP,50;
- skill TMW2_MPREGEN, 1;
+ addtoskill(TMW2_MPREGEN, 1, 2);
bonus bMaxHPrate, -20;
bonus bDef,-32767;
">
@@ -13754,7 +13754,7 @@ item_db: (
Script: <"
//bonus bAttack2,-125;
bonus bMaxSP,25;
- skill TMW2_MPREGEN, 1;
+ addtoskill(TMW2_MPREGEN, 4, 2);
bonus bMaxHPrate, -5;
bonus bDef,-32767;
">
diff --git a/db/re/skill_db.conf b/db/re/skill_db.conf
index 9b5b5fca7..dbd4fd9ad 100644
--- a/db/re/skill_db.conf
+++ b/db/re/skill_db.conf
@@ -38568,7 +38568,7 @@ skill_db: (
Id: 20022
Name: "TMW2_MPREGEN"
Description: "MP Regen"
- MaxLevel: 1
+ MaxLevel: 10
SkillType: {
Self: true
}
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;