mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-07 08:39:17 +00:00
Update existing plugins to use the new utils plugin.
This commit is contained in:
@@ -29,7 +29,7 @@ end
|
||||
|
||||
# Appends a food item to the list of consumables.
|
||||
def append_food(hash)
|
||||
raise 'Hash must contain a name, id, and a restoration value.' unless (hash.has_key?(:name) && hash.has_key?(:id) && hash.has_key?(:restoration))
|
||||
raise 'Hash must contain a name, id, and a restoration value.' unless (hash.has_keys?(:name, :id, :restoration))
|
||||
name = hash[:name]; id = hash[:id]; restoration = hash[:restoration]
|
||||
|
||||
append_consumable(Food.new(name, id, restoration))
|
||||
|
||||
Reference in New Issue
Block a user