mirror of
https://github.com/Threnklyn/dungeon-sheets.git
synced 2026-06-13 16:13:32 +02:00
Added more all wizard necromancy spells and a spell factory.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user