summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-10-13 10:50:15 -0300
committerJesusaves <cpntb1@ymail.com>2020-10-13 10:50:15 -0300
commita48805eec28796e4febb2f9588f483ce11d774b8 (patch)
tree9f5a12b918a6d36a1ba2230aace66c705b1fec05
parent678a8e27f01e55d5dafd511a9e6e85523b13b903 (diff)
downloadserverdata-a48805eec28796e4febb2f9588f483ce11d774b8.tar.gz
serverdata-a48805eec28796e4febb2f9588f483ce11d774b8.tar.bz2
serverdata-a48805eec28796e4febb2f9588f483ce11d774b8.tar.xz
serverdata-a48805eec28796e4febb2f9588f483ce11d774b8.zip
Consider item level on the malus formula as well
-rw-r--r--npc/005-4/tolchi.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/npc/005-4/tolchi.txt b/npc/005-4/tolchi.txt
index bab1f0d88..0972aea07 100644
--- a/npc/005-4/tolchi.txt
+++ b/npc/005-4/tolchi.txt
@@ -343,7 +343,8 @@ function tolchi_tweaks {
#FIRST_TIME=true;
}
- if (BaseLevel*(REBIRTH+1) > 25)
+ .@mylevel=BaseLevel*(REBIRTH+1) + max(1, .@lv);
+ if (.@mylevel > 30)
setitemoptionbyindex(.@id, 3, IOPT_WALKSPEED, rand2(-10, -5));
mesn;
mesc l("Well, here you are. I hope you enjoy ^^", 3);