X-Git-Url: https://plomlompom.com/repos/?p=plomrogue;a=blobdiff_plain;f=server%2Fai.py;h=661d3022acefdeba50460ff4134d4adf3c61084f;hp=415d533a5b70603c56eec796dd8f24df5d2991be;hb=aa19546b06e90c2e6c25a66c4e8c84d84e0c2889;hpb=e8c627dc4dde2d6b60597a34d1594e7ae5b86b8c diff --git a/server/ai.py b/server/ai.py index 415d533..661d302 100644 --- a/server/ai.py +++ b/server/ai.py @@ -140,9 +140,8 @@ def get_dir_to_target(t, filter): [set_map_score(mt[1] * maplen + mt[2], 0) for mt in t["T_MEMTHING"] if ord_blank != t["T_MEMMAP"][mt[1] * maplen + mt[2]] - if t != world_db["Things"][0] or - (world_db["ThingTypes"][mt[0]]["TT_TOOL"] == "food" and - world_db["ThingTypes"][mt[0]]["TT_TOOLPOWER"] > eat_cost)] + if world_db["ThingTypes"][mt[0]]["TT_TOOL"] == "food" + if world_db["ThingTypes"][mt[0]]["TT_TOOLPOWER"] > eat_cost] elif "s" == filter: zero_score_map_where_char_on_memdepthmap(mem_depth_c[0]) if "f" == filter: