From: Mikko Rasa Date: Thu, 16 Aug 2018 14:35:00 +0000 (+0300) Subject: Remove a block of commented out code X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=8bde98fb78392e80922f9d86f5ee28565848dfad;p=poefilter.git Remove a block of commented out code --- diff --git a/scrape-item-data.py b/scrape-item-data.py index 0334898..71e573a 100755 --- a/scrape-item-data.py +++ b/scrape-item-data.py @@ -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")