From 319e6722e7e7bc0ed64d166469e6cb1aeb4cec3d Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 26 Apr 2020 12:40:26 -0300 Subject: Leave the commented code operational --- npc/005-4/tolchi.txt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/npc/005-4/tolchi.txt b/npc/005-4/tolchi.txt index a28500ba9..b4c11c74d 100644 --- a/npc/005-4/tolchi.txt +++ b/npc/005-4/tolchi.txt @@ -320,18 +320,15 @@ function tolchi_tweaks { if (rand2(1000) < 250-(.@lv*2)) { .@vartp=relative_array_random(@csys_attr); .@popindex=getarrayindex(.@vartp); - deletearray(.@popindex, 1); - deletearray(.@popindex, 1); .@bonus=csys_Multiplier(.@lv); setitemoptionbyindex(.@id, 1, .@vartp, .@bonus); } // Final re-roll: Easier for lower levels. Equip based. Nearly impossible. + deletearray(@csys_attr[.@popindex], 2); if (rand2(10000) < 250-(.@lv*2)) { .@vartp=relative_array_random(@csys_attr); .@popindex=getarrayindex(.@vartp); - deletearray(.@popindex, 1); - deletearray(.@popindex, 1); .@bonus=csys_Multiplier(.@lv); setitemoptionbyindex(.@id, 1, .@vartp, .@bonus); } -- cgit v1.2.3-70-g09d2