mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-03 00:38:21 +00:00
Fix #218
This commit is contained in:
@@ -248,4 +248,4 @@ MAGIC_ROOTS = Ingredient.new(6051)
|
||||
UNICORN_HORN_DUST = append_ground(235, 237)
|
||||
DRAGON_SCALE_DUST = append_ground(241, 243)
|
||||
CHOCOLATE_DUST = append_ground(1975, 1973)
|
||||
# CRUSHED_NEST = append_ground(6693, 5075) # TODO: only in 377
|
||||
CRUSHED_NEST = append_ground(6693, 5075)
|
||||
|
||||
@@ -44,7 +44,7 @@ class ConvertingAction < SpellAction
|
||||
reward = @spell.reward
|
||||
@slots.each { |slot| inventory.set(slot, reward) }
|
||||
|
||||
unless firing # If we waited with firing events, restore it now and force a refresh
|
||||
unless firing
|
||||
inventory.start_firing_events
|
||||
inventory.force_refresh
|
||||
end
|
||||
@@ -80,9 +80,10 @@ def bone_slots(player)
|
||||
slots
|
||||
end
|
||||
|
||||
def convert(button, level, elements, experience, reward)
|
||||
def convert(_name, button, level, elements, experience, reward)
|
||||
CONVERT_SPELLS[button] = ConvertSpell.new(level, elements, experience, reward)
|
||||
end
|
||||
|
||||
convert 1159, 15, { NATURE => 1, WATER => 2, EARTH => 2 }, 25, 1963 # Bones to bananas
|
||||
# convert 15877, 60, { NATURE => 2, WATER => 4, EARTH => 4 }, 35.5, 6883 # Bones to peaches
|
||||
convert :bones_to_bananas, 1159, 15, { NATURE => 1, WATER => 2, EARTH => 2 }, 25, 1963
|
||||
convert :bones_to_peaches, 15877, 60, { NATURE => 2, WATER => 4, EARTH => 4 }, 35.5, 6883
|
||||
|
||||
|
||||
Reference in New Issue
Block a user