From: Christian Heller Date: Fri, 13 Mar 2015 20:14:42 +0000 (+0100) Subject: 7DRL: Exclude map cells with actors in FOV on them from stack depth map. X-Git-Url: https://plomlompom.com/repos/%22https:/validator.w3.org/do_day?a=commitdiff_plain;h=19cb190d4504b3d4b957c188ae381bbb4ff0790c;p=plomrogue 7DRL: Exclude map cells with actors in FOV on them from stack depth map. --- 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"][ # #