updating cleanyaml and cleaning up feats and requirements

bradl/monsters-adult-gold-dragon
James Miller 2020-04-21 17:45:16 -05:00
parent 5ffd104c6c
commit 7343aed690
3 changed files with 220 additions and 213 deletions

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)

File diff suppressed because it is too large Load Diff

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.