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.txt21
1 files changed, 9 insertions, 12 deletions
diff --git a/npc/functions/fishing.txt b/npc/functions/fishing.txt
index 33f746c9d..40f5bfb26 100644
--- a/npc/functions/fishing.txt
+++ b/npc/functions/fishing.txt
@@ -121,20 +121,17 @@ function script fishing {
GrassCarp;
}
- .@rare_fish_chance = getvariableofnpc(.rare_fish_chance, .@npc$);
- .@rare_fish_chance = (.@rare_fish_chance ? .@rare_fish_chance : 25);
-
if (getvariableofnpc(.bait_ids[0], .@npc$) < 1)
{
- // default baits (bait, chance booster)
+ // default baits (bait, chance booster) rand(0, 100)
setarray getvariableofnpc(.bait_ids[0], .@npc$),
- SmallTentacles, 1,
- Bread, 1,
- Aquada, 2,
- Tentacles, 3,
- BugLeg, 0,
- CaveSnakeTongue, 1,
- RoastedMaggot, 2;
+ SmallTentacles, 4,
+ Bread, 4,
+ Aquada, 8,
+ Tentacles, 12,
+ BugLeg, 1,
+ CaveSnakeTongue, 4,
+ RoastedMaggot, 8;
}
@@ -195,7 +192,7 @@ function script fishing {
}
// RNG to obtain a rare fish or common fish
- if (rand(.@rare_fish_chance) <= getvariableofnpc(.bait_ids[@bait_d+1], .@npc$))
+ if (rand(0, 100) < getvariableofnpc(.bait_ids[@bait_d+1], .@npc$))
{
.@fish_id = .@rare_fish[rand(getarraysize(.@rare_fish))];
} else {