summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-01-08 15:54:48 -0300
committerJesusaves <cpntb1@ymail.com>2021-01-08 15:54:48 -0300
commit99d34a1e7c73a3dd7cbda8a227f030a1fc82a254 (patch)
treefb2efd06fe7f953de8472712c0aad12052f89cef
parentc4c0e10734714b14554f3c35b82722c972cb3a56 (diff)
downloadserverdata-99d34a1e7c73a3dd7cbda8a227f030a1fc82a254.tar.gz
serverdata-99d34a1e7c73a3dd7cbda8a227f030a1fc82a254.tar.bz2
serverdata-99d34a1e7c73a3dd7cbda8a227f030a1fc82a254.tar.xz
serverdata-99d34a1e7c73a3dd7cbda8a227f030a1fc82a254.zip
Okay, not all bonuses, just those above 5%
-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 37301a7ce..5b9a4f69e 100644
--- a/npc/005-4/tolchi.txt
+++ b/npc/005-4/tolchi.txt
@@ -338,7 +338,8 @@ function tolchi_tweaks {
// Apply the bonus
.@bonus=csys_Multiplier(.@lv);
.@bonus=limit(1, .@bonus, 25);
- .@bonus=max(1, rand2(.@bonus/2, .@bonus));
+ if (.@bonus > 5)
+ .@bonus=rand2(5, .@bonus);
if (.@vartp == VAR_MAXHPAMOUNT)
.@bonus+=rand2(25);
setitemoptionbyindex(.@id, 0, .@vartp, .@bonus);