mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-03 00:38:21 +00:00
11 lines
277 B
Ruby
11 lines
277 B
Ruby
SPELLBOOKS = {}
|
|
|
|
def create_spellbook(identifier, interface_id:)
|
|
SPELLBOOKS[interface_id] = identifier
|
|
end
|
|
|
|
def spellbook_for(interface_id)
|
|
fail "Could not find spellbook for #{interface_id}" unless SPELLBOOKS.has_key?(interface_id)
|
|
|
|
return SPELLBOOKS[interface_id]
|
|
end |