X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=roguelike-server;h=cb6b3dd0c97f142392a9c46544f9c9319a705de6;hb=19cb190d4504b3d4b957c188ae381bbb4ff0790c;hp=9bc55ad815bb6fe788720016b05c1e6c1979ef02;hpb=5987599c7531fb17ad174824335d99339200f306;p=plomrogue 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"][ # #