X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/%7B%7Bdeck_id%7D%7D/cards/%7B%7Bcard_id%7D%7D/static/git-logo.png?a=blobdiff_plain;f=server%2Fai.py;h=661d3022acefdeba50460ff4134d4adf3c61084f;hb=aa19546b06e90c2e6c25a66c4e8c84d84e0c2889;hp=415d533a5b70603c56eec796dd8f24df5d2991be;hpb=02d039896bd170cd57fbdaf9408405eabf0d6b54;p=plomrogue 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: