updating cleanyaml and cleaning up feats and requirements

This commit is contained in:
jrmiller82 committed 2020-04-21 17:45:16 -05:00
1 parent 5ffd104c6c
commit 7343aed690
3 files changed
+220 -213

No files matched your search

+6
View File
@@ -17,6 +17,12 @@ def main():
print("Doing: {}".format(x))
with open(x, 'r') as r:
data = yaml.full_load(r)
if x == "feats.yaml":
for i in data['feat']:
if i['requirement'] != None:
print("Before: {}".format(i['requirement']))
i['requirement'] = i['requirement'].replace('’', "'")
print("After: {}".format(i['requirement']))
final = yaml.safe_dump(data, allow_unicode=True)
with open(x, 'w') as f:
f.write(final)
+212 -212
View File
File diff suppressed because it is too large. Load diff
+2 -1
View File
@@ -75,4 +75,5 @@ requirement:
- You have an unexpended spell slot you could use to cast the triggered spell.
- Your most recent action was to cast a non-cantrip spell.
- The last action you used was Drain Bonded Item.
- You have a focus pool, and you have spent at least 1 Focus Point since you last regained any Focus Points.
- You have a focus pool, and you have spent at least 1 Focus Point since you last
regained any Focus Points.