From 5f59e6d2add65d7d0e98e3d43d6223ca1c240a5f Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Thu, 16 Aug 2018 19:44:22 +0300 Subject: [PATCH] Created combined best/second_at_level categories --- scrape-item-data.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/scrape-item-data.py b/scrape-item-data.py index e788837..c592ff4 100755 --- a/scrape-item-data.py +++ b/scrape-item-data.py @@ -319,6 +319,13 @@ def main(): out.write('\t\tbase_type "{}";\n'.format(it.name)) out.write("\t};\n};\n") + for b in ("best", "second"): + out.write('category "armor.{}_at_level"\n'.format(b)) + out.write('{\n\tor\n\t{\n') + for t in types.keys(): + out.write('\t\tcategory "armor.{}.{}_at_level";\n'.format(t, b)) + out.write("\t};\n};\n") + out.write('category "armor"\n{\n\tor\n\t{\n') for h in p.headings: out.write('\t\tclass "{}";\n'.format(h)) @@ -339,6 +346,13 @@ def main(): for i in range(1, 3): write_best_category(out, "weapon.{}".format(h.lower().replace(' ', '_')), items, i) + for b in ("best", "second"): + out.write('category "weapon.{}_at_level"\n'.format(b)) + out.write('{\n\tor\n\t{\n') + for h in p.headings: + out.write('\t\tcategory "weapon.{}.{}_at_level";\n'.format(h.lower().replace(' ', '_'), b)) + out.write("\t};\n};\n") + out.write('category "weapon"\n{\n\tor\n\t{\n') for h in p.headings: out.write('\t\tclass "{}";\n'.format(h)) -- 2.43.0