From 5c8d5f17c7f71fe20e55729312bd87a4e4da8073 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 17 Dec 2018 18:58:49 -0200 Subject: Clear syntax on fishing npc --- npc/functions/fishing.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/npc/functions/fishing.txt b/npc/functions/fishing.txt index b35caeb03..704d23e1b 100644 --- a/npc/functions/fishing.txt +++ b/npc/functions/fishing.txt @@ -194,9 +194,9 @@ function script fishing { // RNG to obtain a rare fish or common fish if (rand(0, 100) < getvariableofnpc(.bait_ids[@bait_d+1], .@npc$)) { - .@fish_id = .@rare_fish[rand(getarraysize(.@rare_fish))]; + .@fish_id = any_of(.@rare_fish); } else { - .@fish_id = .@common_fish[rand(getarraysize(.@common_fish))]; + .@fish_id = any_of(.@common_fish); } // RNG to obtain a fish -- cgit v1.2.3-60-g2f50