add ac_special: null to monsters.yaml; related to #89

bradl/monsters-adult-gold-dragon
James Ryland Miller 2020-04-22 20:27:19 -05:00
parent c020b58540
commit 898b39e3d2
3 changed files with 47487 additions and 78 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,25 @@
import yaml
def main():
with open('monsters.yaml') as m:
data = yaml.full_load(m)
monsterlist = []
for i in data:
if 'ac_special' in i:
continue
else:
i['ac_special'] = None
monsterlist.append(i)
finaldata = {'monsters': monsterlist}
final = yaml.safe_dump(finaldata, allow_unicode=True)
with open('tmp-monsters.yaml', 'w') as f:
f.write(final)
if __name__ == "__main__":
main()

File diff suppressed because it is too large Load Diff