add ac_special: null to monsters.yaml; related to #89
parent
c020b58540
commit
898b39e3d2
File diff suppressed because it is too large
Load Diff
|
@ -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
Loading…
Reference in New Issue