]> git.tdb.fi Git - poefilter.git/commitdiff
Remove a block of commented out code
authorMikko Rasa <tdb@tdb.fi>
Thu, 16 Aug 2018 14:35:00 +0000 (17:35 +0300)
committerMikko Rasa <tdb@tdb.fi>
Thu, 16 Aug 2018 14:35:00 +0000 (17:35 +0300)
scrape-item-data.py

index 0334898ac4aff96637146b474470860b0eca319d..71e573a2c96b74c76d2ca4812564cf91d2a6c6cc 100755 (executable)
@@ -256,23 +256,6 @@ def main():
 
                for i in range(1, 3):
                        write_best_category(out, "armor.{}".format(t), items, i)
-                       """out.write('category "armor.{}.{}_at_level"\n'.format(t, best[i-1]))
-                       out.write("{\n\tor\n\t{\n")
-                       for it in items:
-                               next_level = 0
-                               n = it.name
-                               for k in range(i):
-                                       n = p.upgrades.get(n, "")
-                               if n:
-                                       next_level = p.items[n].droplevel
-                               if next_level:
-                                       out.write("\t\tand\n\t\t{\n")
-                                       out.write('\t\t\tbase_type "{}";\n'.format(it.name))
-                                       out.write("\t\t\tmax_item_level {};\n".format(next_level-1))
-                                       out.write("\t\t};\n")
-                               else:
-                                       out.write('\t\tbase_type "{}";\n'.format(it.name))
-                       out.write("\t};\n};\n")"""
 
                out.write('category "armor.{}"\n'.format(t))
                out.write("{\n\tor\n\t{\n")