Add initial combat spell support

This commit is contained in:
Steve Soltys
2016-01-27 12:32:55 -05:00
committed by Gary Tierney
parent 9f47fae6a9
commit ec248a185b
9 changed files with 238 additions and 38 deletions
+11
View File
@@ -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