Added more all wizard necromancy spells and a spell factory.

This commit is contained in:
Mark Wolfman
2018-04-09 23:58:56 -05:00
parent 82d59a70d9
commit e6bec1ce55
8 changed files with 348 additions and 24 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ def findattr(obj, name):
"""
# Come up with several options
py_name = name.replace('-', '_').replace(' ', '_')
py_name = name.replace('-', '_').replace(' ', '_').replace("'", "")
camel_case = "".join([s.capitalize() for s in py_name.split('_')])
if hasattr(obj, py_name):
# Direct lookup