mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-04 08:39:27 +00:00
Fix fishing skill.
This commit is contained in:
@@ -18,21 +18,23 @@ class Fish
|
||||
end
|
||||
|
||||
# Appends a Fish to the hash.
|
||||
def append_fish(name, fish)
|
||||
CATCHABLE_FISH[name] = fish
|
||||
def append_fish(name, hash)
|
||||
fail 'Hash must contain an id, level, and experience.' unless hash.has_keys?(:id, :level, :experience)
|
||||
|
||||
CATCHABLE_FISH[name] = Fish.new(hash[:id], hash[:level], hash[:experience])
|
||||
end
|
||||
|
||||
append_fish(:shrimp, Fish.new(317, 1, 10))
|
||||
append_fish(:sardine, Fish.new(327, 5, 20))
|
||||
append_fish(:herring, Fish.new(345, 10, 30))
|
||||
append_fish(:anchovy, Fish.new(321, 15, 40))
|
||||
append_fish(:mackerel, Fish.new(353, 16, 20))
|
||||
append_fish(:trout, Fish.new(335, 20, 50))
|
||||
append_fish(:cod, Fish.new(341, 23, 45))
|
||||
append_fish(:pike, Fish.new(349, 25, 60))
|
||||
append_fish(:salmon, Fish.new(331, 30, 70))
|
||||
append_fish(:tuna, Fish.new(359, 35, 80))
|
||||
append_fish(:lobster, Fish.new(377, 40, 90))
|
||||
append_fish(:bass, Fish.new(363, 46, 100))
|
||||
append_fish(:swordfish, Fish.new(371, 50, 100))
|
||||
append_fish(:shark, Fish.new(383, 76, 110))
|
||||
append_fish :shrimp, id: 317, level: 1, experience: 10
|
||||
append_fish :sardine, id: 327, level: 5, experience: 20
|
||||
append_fish :herring, id: 345, level: 10, experience: 30
|
||||
append_fish :anchovy, id: 321, level: 15, experience: 40
|
||||
append_fish :mackerel, id: 353, level: 16, experience: 20
|
||||
append_fish :trout, id: 335, level: 20, experience: 50
|
||||
append_fish :cod, id: 341, level: 23, experience: 45
|
||||
append_fish :pike, id: 349, level: 25, experience: 60
|
||||
append_fish :salmon, id: 331, level: 30, experience: 70
|
||||
append_fish :tuna, id: 359, level: 35, experience: 80
|
||||
append_fish :lobster, id: 377, level: 40, experience: 90
|
||||
append_fish :bass, id: 363, level: 46, experience: 100
|
||||
append_fish :swordfish, id: 371, level: 50, experience: 100
|
||||
append_fish :shark, id: 383, level: 76, experience: 110
|
||||
|
||||
Reference in New Issue
Block a user