X-Git-Url: https://plomlompom.com/repos/%22https:/validator.w3.org/static/gitweb.css?a=blobdiff_plain;f=client_prototype.py;h=a6256294c40a8c0ecb3b19cc53ee836658789018;hb=07aa70614961f46cf93830f2f3d7a33f9c4ef6c1;hp=bed6400196463c65ade82d006625791477c32c19;hpb=df973a6f53bb87c74e0ae269fd5df45aff73ecdb;p=plomrogue diff --git a/client_prototype.py b/client_prototype.py index bed6400..a625629 100644 --- a/client_prototype.py +++ b/client_prototype.py @@ -195,6 +195,9 @@ def read_worldstate(): if line == '%': break world_data["inventory"] += [line] + world_data["position"][0] = int(worldstate_file.readline()) + world_data["position"][1] = int(worldstate_file.readline()) + world_data["map_size"] = int(worldstate_file.readline()) worldstate_file.close() read_worldstate.last_checked_mtime = -1 @@ -341,6 +344,8 @@ world_data = { "inventory": [], "lifepoints": -1, "log": [], + "map_size": -1, + "position": [-1, -1], "satiation": -1, "turn": -1 }