- def animate_in_fov(Thing, maplength):
- if not Thing["T_LIFEPOINTS"] or Thing["carried"] or Thing == t:
- return False
- pos = Thing["T_POSY"] * maplength + Thing["T_POSX"]
- if 118 == t["fovmap"][pos]: # optimization: 118 = ord("v")
- return True
+ def animates_in_fov(maplength):
+ return [Thing for Thing in world_db["Things"].values()
+ if Thing["T_LIFEPOINTS"] and not Thing["carried"]
+ and not Thing == t and 118 == t["fovmap"][Thing["pos"]]]
+
+ #def animates_in_fov_gen(maplength):
+ # return (Thing for Thing in world_db["Things"].values()
+ # if Thing["T_LIFEPOINTS"] and not Thing["carried"]
+ # and not Thing == t and 118 == t["fovmap"][Thing["pos"]])