From 3525f18536541a848acee75a275f44b510339566 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 14 Jul 2019 22:16:06 -0300 Subject: Fishing - use rand2() instead of rand() --- npc/functions/fishing.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'npc/functions') diff --git a/npc/functions/fishing.txt b/npc/functions/fishing.txt index c071f20d2..57df44956 100644 --- a/npc/functions/fishing.txt +++ b/npc/functions/fishing.txt @@ -208,7 +208,7 @@ function script fishing { // Luck can increase up to 5% when it is at 100. // Level can increase up to 10% when it is at 100. .@boost=(readparam(bLuk)/20)+(BaseLevel/10); - if (rand(0, 100) < getvariableofnpc(.bait_ids[@bait_d+1], .@npc$)+.@boost) + if (rand2(0, 100) < getvariableofnpc(.bait_ids[@bait_d+1], .@npc$)+.@boost) { //debugmes("[FISH] Got a rare with %d drop chances", getarraysize(.@rare_fish)); .@fish_id = any_of(.@rare_fish); -- cgit v1.2.3-70-g09d2