summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-01-13 18:55:39 -0200
committerJesusaves <cpntb1@ymail.com>2019-01-13 18:55:39 -0200
commitf15bb7f1bff12b5bda89764bbaadde9baf023b02 (patch)
treebd831fd25995675df764fc320453bc12f4c6ebf5 /npc
parentf41ed365c352f5bf5f5d5d7ee997bfa03c547607 (diff)
downloadserverdata-f15bb7f1bff12b5bda89764bbaadde9baf023b02.tar.gz
serverdata-f15bb7f1bff12b5bda89764bbaadde9baf023b02.tar.bz2
serverdata-f15bb7f1bff12b5bda89764bbaadde9baf023b02.tar.xz
serverdata-f15bb7f1bff12b5bda89764bbaadde9baf023b02.zip
Luck can now increase up to 5% and BaseLevel up to 10% the chances to get a
rare fish. My char is level 40 and have 20 luck. So he gets 5% rare boost. In other rand, bait rare boost was sightly diminshed. Maximum boost atm (level 150 luck 100) is now 30% (instead of 12%)
Diffstat (limited to 'npc')
-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);
}