mirror of
https://gitlab.com/jrmiller82/pathfinder-2-sqlite.git
synced 2026-10-12 22:29:44 -04:00
add ac_special: null to monsters.yaml; related to #89
This commit is contained in:
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
@@ -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()
|
||||
Reference in new issue
Block a user