- eat_cost = eat_vs_hunger_threshold(t["T_TYPE"])
- for mt in [mt for mt in t["T_MEMTHING"]
- if ord_blank != t["T_MEMMAP"][mt[1]
- * world_db["MAP_LENGTH"]
- + mt[2]]
- if world_db["ThingTypes"][mt[0]]["TT_TOOL"] == "food"
- if world_db["ThingTypes"][mt[0]]["TT_TOOLPOWER"]
- > eat_cost]:
- set_map_score(mt[1] * world_db["MAP_LENGTH"] + mt[2], 0)
+ eat_cost = tt["eat_vs_hunger_threshold"]
+ ord_blank = ord(" ")
+ [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 world_db["ThingTypes"][mt[0]]["TT_TOOL"] == "food"
+ if world_db["ThingTypes"][mt[0]]["TT_TOOLPOWER"] > eat_cost]