summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-07-14 22:16:06 -0300
committerJesusaves <cpntb1@ymail.com>2019-07-14 22:16:06 -0300
commit3525f18536541a848acee75a275f44b510339566 (patch)
tree855020eebf5cc3e4565552b2abc55e2db71bc89f /npc/functions
parent99524874861fda01d0c6bb893f82d598b6d55951 (diff)
downloadserverdata-3525f18536541a848acee75a275f44b510339566.tar.gz
serverdata-3525f18536541a848acee75a275f44b510339566.tar.bz2
serverdata-3525f18536541a848acee75a275f44b510339566.tar.xz
serverdata-3525f18536541a848acee75a275f44b510339566.zip
Fishing - use rand2() instead of rand()
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/fishing.txt2
1 files changed, 1 insertions, 1 deletions
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);