diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-12-17 18:58:49 -0200 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-12-17 18:58:49 -0200 |
commit | 5c8d5f17c7f71fe20e55729312bd87a4e4da8073 (patch) | |
tree | b0a2a12b21209d6facfc35fd710401afeee722f6 /npc/functions | |
parent | 4735a19a751ceb270115e7b40a84a3b9502bc3c3 (diff) | |
download | serverdata-5c8d5f17c7f71fe20e55729312bd87a4e4da8073.tar.gz serverdata-5c8d5f17c7f71fe20e55729312bd87a4e4da8073.tar.bz2 serverdata-5c8d5f17c7f71fe20e55729312bd87a4e4da8073.tar.xz serverdata-5c8d5f17c7f71fe20e55729312bd87a4e4da8073.zip |
Clear syntax on fishing npc
Diffstat (limited to 'npc/functions')
-rw-r--r-- | npc/functions/fishing.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/npc/functions/fishing.txt b/npc/functions/fishing.txt index b35caeb03..704d23e1b 100644 --- a/npc/functions/fishing.txt +++ b/npc/functions/fishing.txt @@ -194,9 +194,9 @@ function script fishing { // RNG to obtain a rare fish or common fish if (rand(0, 100) < getvariableofnpc(.bait_ids[@bait_d+1], .@npc$)) { - .@fish_id = .@rare_fish[rand(getarraysize(.@rare_fish))]; + .@fish_id = any_of(.@rare_fish); } else { - .@fish_id = .@common_fish[rand(getarraysize(.@common_fish))]; + .@fish_id = any_of(.@common_fish); } // RNG to obtain a fish |