summaryrefslogtreecommitdiff
path: root/npc/functions/fishing.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/fishing.txt')
-rw-r--r--npc/functions/fishing.txt4
1 files 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