mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-05 00:38:14 +00:00
Add initial combat spell support
This commit is contained in:
committed by
Gary Tierney
parent
9f47fae6a9
commit
ec248a185b
@@ -0,0 +1,11 @@
|
||||
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
|
||||
Reference in New Issue
Block a user