diff options
Diffstat (limited to 'npc')
-rw-r--r-- | npc/functions/fishing.txt | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/npc/functions/fishing.txt b/npc/functions/fishing.txt index b00b499ac..be11579d9 100644 --- a/npc/functions/fishing.txt +++ b/npc/functions/fishing.txt @@ -105,17 +105,17 @@ function script fishing { .@fish_id = CommonCarp; // failsafe - if (getarraysize(.common_fish) < 1) + if (getarraysize(getvariableofnpc(.common_fish, .@npc$)) < 1) { // default fishes - setarray .common_fish, + setarray .@common_fish, CommonCarp; } - if (getarraysize(.rare_fish) < 1) + if (getarraysize(getvariableofnpc(.rare_fish, .@npc$)) < 1) { // default fishes - setarray .rare_fish, + setarray .@rare_fish, GrassCarp; } @@ -196,9 +196,9 @@ function script fishing { // RNG to obtain a rare fish or common fish if (rand(.@rare_fish_chance) <= getvariableofnpc(.bait_ids[@bait_d+1], .@npc$)) { - .@fish_id = .rare_fish[rand(getarraysize(.rare_fish))]; + .@fish_id = .@rare_fish[rand(getarraysize(.@rare_fish))]; } else { - .@fish_id = .common_fish[rand(getarraysize(.common_fish))]; + .@fish_id = .@common_fish[rand(getarraysize(.@common_fish))]; } // RNG to obtain a fish |