From 44862dca9b6f26513f23ea1fd79365c7a8d33d9e Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 1 Jun 2019 21:30:02 -0300 Subject: Use rand2() instead of rand() in several places --- npc/003-1/ishi.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'npc/003-1/ishi.txt') diff --git a/npc/003-1/ishi.txt b/npc/003-1/ishi.txt index e371acfc5..2283af685 100644 --- a/npc/003-1/ishi.txt +++ b/npc/003-1/ishi.txt @@ -159,7 +159,7 @@ L_Items: //debugmes "Setting reward"; // could be if (!.@lucked) but for sanity... if (.@reward$ == "") - set .@reward$, @Items$[rand(getarraysize(@Items$))]; + .@reward$=any_of(@Items$); //debugmes "Check weight"; .@weight = checkweight(.@reward$,1); -- cgit v1.2.3-60-g2f50