summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-10-13 10:47:27 -0300
committerJesusaves <cpntb1@ymail.com>2020-10-13 10:47:27 -0300
commit678a8e27f01e55d5dafd511a9e6e85523b13b903 (patch)
tree4565539a9c337bb4f9128c1d84f51469729842d4
parent95ff1a85a29c426d3da2e8a1494b468e75a82050 (diff)
downloadserverdata-678a8e27f01e55d5dafd511a9e6e85523b13b903.tar.gz
serverdata-678a8e27f01e55d5dafd511a9e6e85523b13b903.tar.bz2
serverdata-678a8e27f01e55d5dafd511a9e6e85523b13b903.tar.xz
serverdata-678a8e27f01e55d5dafd511a9e6e85523b13b903.zip
I don't trust gumi's code
-rw-r--r--npc/005-4/tolchi.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/npc/005-4/tolchi.txt b/npc/005-4/tolchi.txt
index d70089085..bab1f0d88 100644
--- a/npc/005-4/tolchi.txt
+++ b/npc/005-4/tolchi.txt
@@ -319,6 +319,10 @@ function tolchi_tweaks {
// Select a bonus and purge it
.@vartp=relative_array_random(@csys_attr);
+ // Safety check
+ if (.@vartp < 1)
+ .@vartp=relative_array_random(@csys_attr);
+
// First time player bonus
if (!#FIRST_TIME) {
.@vartp=IOPT_RICHNESS;