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

This commit is contained in:
jrmiller82 committed 2020-04-22 20:27:19 -05:00
1 parent c020b58540
commit 898b39e3d2
3 files changed
+47487 -78

No files matched your search

File diff suppressed because it is too large. Load diff
+25
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()