From 19cb190d4504b3d4b957c188ae381bbb4ff0790c Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Fri, 13 Mar 2015 21:14:42 +0100 Subject: [PATCH] 7DRL: Exclude map cells with actors in FOV on them from stack depth map. --- roguelike-server | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/roguelike-server b/roguelike-server index 9bc55ad..cb6b3dd 100755 --- a/roguelike-server +++ b/roguelike-server @@ -361,6 +361,15 @@ def try_worldstate_update(): string = write_map(string, mem) stacksmap = bytearray(b'0' * (length ** 2)) # # + for id in [id for id in world_db["Things"] # # + if not world_db["Things"][id]["carried"] # # + if world_db["Things"][id]["T_LIFEPOINTS"] + if world_db["Things"][0]["fovmap"][ # # + world_db["Things"][id]["T_POSY"] * length # # + + world_db["Things"][id]["T_POSX"]] == ord_v]: # # + pos = (world_db["Things"][id]["T_POSY"] * length # # + + world_db["Things"][id]["T_POSX"]) # # + stacksmap[pos] = ord('X') # # for id in [id for id in world_db["Things"] # # if not world_db["Things"][id]["carried"] # # if world_db["Things"][0]["fovmap"][ # # -- 2.30.2