diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-01-13 18:55:39 -0200 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-01-13 18:55:39 -0200 |
commit | f15bb7f1bff12b5bda89764bbaadde9baf023b02 (patch) | |
tree | bd831fd25995675df764fc320453bc12f4c6ebf5 /npc/functions/fishing.txt | |
parent | f41ed365c352f5bf5f5d5d7ee997bfa03c547607 (diff) | |
download | serverdata-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/functions/fishing.txt')
-rw-r--r-- | npc/functions/fishing.txt | 13 |
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); } |