diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-12-16 13:56:02 -0200 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-12-16 13:56:02 -0200 |
commit | d7d377939975609d65812679115983767de7da14 (patch) | |
tree | f3fb9a61fa177826d6c71c38c9a2389499d56748 /npc/functions/fishing.txt | |
parent | 72bc3413d34df0ad03c21df1cd5949b455deb14b (diff) | |
download | serverdata-d7d377939975609d65812679115983767de7da14.tar.gz serverdata-d7d377939975609d65812679115983767de7da14.tar.bz2 serverdata-d7d377939975609d65812679115983767de7da14.tar.xz serverdata-d7d377939975609d65812679115983767de7da14.zip |
Minor rework to how rare-fish fishing goes
Diffstat (limited to 'npc/functions/fishing.txt')
-rw-r--r-- | npc/functions/fishing.txt | 21 |
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 { |