summaryrefslogtreecommitdiff
path: root/npc/functions/fishing.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-12-18 12:24:42 -0200
committerJesusaves <cpntb1@ymail.com>2018-12-18 12:24:42 -0200
commite60627c86c5e4d45482eb731cfc0404029c1b68e (patch)
tree565582c13e90d7d562eb0258bd117c3c84a5140f /npc/functions/fishing.txt
parenta939de6cc231c31276b1871479103fd72d4f1c97 (diff)
downloadserverdata-e60627c86c5e4d45482eb731cfc0404029c1b68e.tar.gz
serverdata-e60627c86c5e4d45482eb731cfc0404029c1b68e.tar.bz2
serverdata-e60627c86c5e4d45482eb731cfc0404029c1b68e.tar.xz
serverdata-e60627c86c5e4d45482eb731cfc0404029c1b68e.zip
Debug messages
Diffstat (limited to 'npc/functions/fishing.txt')
-rw-r--r--npc/functions/fishing.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/npc/functions/fishing.txt b/npc/functions/fishing.txt
index 704d23e1b..e9d52d41f 100644
--- a/npc/functions/fishing.txt
+++ b/npc/functions/fishing.txt
@@ -120,6 +120,7 @@ function script fishing {
setarray .@rare_fish,
GrassCarp;
}
+ debugmes("[FISH] Initialized with %d common and %d rare fishes", getarraysize(.@common_fish), getarraysize(.@rare_fish));
if (getvariableofnpc(.bait_ids[0], .@npc$) < 1)
{
@@ -194,8 +195,10 @@ function script fishing {
// RNG to obtain a rare fish or common fish
if (rand(0, 100) < getvariableofnpc(.bait_ids[@bait_d+1], .@npc$))
{
+ debugmes("[FISH] Got a rare with %d drop chances", getarraysize(.@rare_fish));
.@fish_id = any_of(.@rare_fish);
} else {
+ debugmes("[FISH] Got a common with %d drop chances", getarraysize(.@common_fish));
.@fish_id = any_of(.@common_fish);
}