summaryrefslogtreecommitdiff
path: root/npc/005-4
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-04-26 12:41:17 -0300
committerJesusaves <cpntb1@ymail.com>2020-04-26 12:41:17 -0300
commitf47eb5218f6d6b7e93a02d67284c4b35ea47df9e (patch)
treeb968fa9492a70f34add266b8cf719ed9bbe10876 /npc/005-4
parent319e6722e7e7bc0ed64d166469e6cb1aeb4cec3d (diff)
downloadserverdata-f47eb5218f6d6b7e93a02d67284c4b35ea47df9e.tar.gz
serverdata-f47eb5218f6d6b7e93a02d67284c4b35ea47df9e.tar.bz2
serverdata-f47eb5218f6d6b7e93a02d67284c4b35ea47df9e.tar.xz
serverdata-f47eb5218f6d6b7e93a02d67284c4b35ea47df9e.zip
Force BaseLevel and Rebirth to affect negativelly the re-rolls
Diffstat (limited to 'npc/005-4')
-rw-r--r--npc/005-4/tolchi.txt6
1 files changed, 2 insertions, 4 deletions
diff --git a/npc/005-4/tolchi.txt b/npc/005-4/tolchi.txt
index b4c11c74d..ed461cbd4 100644
--- a/npc/005-4/tolchi.txt
+++ b/npc/005-4/tolchi.txt
@@ -314,10 +314,9 @@ function tolchi_tweaks {
.@bonus=csys_Multiplier(.@lv);
setitemoptionbyindex(.@id, 0, .@vartp, .@bonus);
- /*
// Re-roll: Easier for lower levels. Equip based.
deletearray(@csys_attr[.@popindex], 2);
- if (rand2(1000) < 250-(.@lv*2)) {
+ if (rand2(1000) < 250-((.@lv+BaseLevel*REBIRTH)*2)) {
.@vartp=relative_array_random(@csys_attr);
.@popindex=getarrayindex(.@vartp);
.@bonus=csys_Multiplier(.@lv);
@@ -326,13 +325,12 @@ function tolchi_tweaks {
// Final re-roll: Easier for lower levels. Equip based. Nearly impossible.
deletearray(@csys_attr[.@popindex], 2);
- if (rand2(10000) < 250-(.@lv*2)) {
+ if (rand2(10000) < 250-((.@lv+BaseLevel*REBIRTH)*2)) {
.@vartp=relative_array_random(@csys_attr);
.@popindex=getarrayindex(.@vartp);
.@bonus=csys_Multiplier(.@lv);
setitemoptionbyindex(.@id, 1, .@vartp, .@bonus);
}
- */
mesn;
mesc l("Well, here you are. I hope you enjoy ^^", 3);