From 678a8e27f01e55d5dafd511a9e6e85523b13b903 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 13 Oct 2020 10:47:27 -0300 Subject: I don't trust gumi's code --- npc/005-4/tolchi.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'npc') 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; -- cgit v1.2.3-60-g2f50