diff options
author | Your Name <you@example.com> | 2021-04-15 15:23:23 -0400 |
---|---|---|
committer | Your Name <you@example.com> | 2021-04-15 15:23:23 -0400 |
commit | dfce4d0398a8bafbb7ad7a31345af181c0269c09 (patch) | |
tree | 695162ff8cc25e146f52d9e26fe19ffa9934b3d6 /parser/utils.py | |
parent | 9034c3d2533177f7cb7a7ce939ec53f7fa63f60e (diff) | |
download | dmtool-dfce4d0398a8bafbb7ad7a31345af181c0269c09.tar.gz dmtool-dfce4d0398a8bafbb7ad7a31345af181c0269c09.tar.bz2 dmtool-dfce4d0398a8bafbb7ad7a31345af181c0269c09.zip |
Added spells
Diffstat (limited to 'parser/utils.py')
-rwxr-xr-x | parser/utils.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/parser/utils.py b/parser/utils.py index 4b7b3f7..087334d 100755 --- a/parser/utils.py +++ b/parser/utils.py @@ -164,6 +164,7 @@ def getSpells(): spell = {} for name in names2names: spell[name] = re.search('(?sm)[\*]*{}[\*:]* (.*?)^[a-zA-Z#\*]'.format(names2names[name]), data).group(1).strip() + spell['name'] = spell['name'].lower() spell['level'] = int(spell['level']) spell['text'] = re.search('(?sm)\*\*Duration:?\*\*:? .*?$(.*)', data).group(1).strip() spell['classes'] = spell['classes'].split() |