summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/fishing.txt13
1 files changed, 8 insertions, 5 deletions
diff --git a/npc/functions/fishing.txt b/npc/functions/fishing.txt
index b6e25a075..b669e5af8 100644
--- a/npc/functions/fishing.txt
+++ b/npc/functions/fishing.txt
@@ -139,12 +139,12 @@ function script fishing {
SmallTentacles, 4,
Bread, 4,
Aquada, 8,
- Tentacles, 12,
+ Tentacles, 10,
BugLeg, 2,
CaveSnakeTongue, 6,
LettuceLeaf, 1,
Cheese, 3,
- RoastedMaggot, 8;
+ RoastedMaggot, 6;
}
@@ -205,12 +205,15 @@ function script fishing {
}
// RNG to obtain a rare fish or common fish
- if (rand(0, 100) < getvariableofnpc(.bait_ids[@bait_d+1], .@npc$))
+ // 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)
{
- debugmes("[FISH] Got a rare with %d drop chances", getarraysize(.@rare_fish));
+ //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));
+ //debugmes("[FISH] Got a common with %d drop chances", getarraysize(.@common_fish));
.@fish_id = any_of(.@common_fish);
}