X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=server%2Fio.py;h=3e1fb41862e18827fb4ad805e3aab556900c6a99;hb=2f7c446f698dbcf510a4997e1689e3a2df3e24be;hp=bb5d3ac13e7661feb6bfd3b7f2594038759c6772;hpb=e8c627dc4dde2d6b60597a34d1594e7ae5b86b8c;p=plomrogue diff --git a/server/io.py b/server/io.py index bb5d3ac..3e1fb41 100644 --- a/server/io.py +++ b/server/io.py @@ -170,7 +170,7 @@ def save_world(): for _id in sorted(world_db[category].keys()): string = string + id_string + " " + str(_id) + "\n" for key in sorted(world_db[category][_id].keys()): - if not key in special_keys: + if key.isupper() and not key in special_keys: x = world_db[category][_id][key] argument = quote_escape(x) if str == type(x) else str(x) string = string + key + " " + argument + "\n" @@ -185,7 +185,7 @@ def save_world(): t = world_db["Things"][tid] for key in sorted(t.keys()): if key not in {"T_CARRIES", "carried", "fovmap", "T_MEMMAP", - "T_MEMTHING", "T_MEMDEPTHMAP"}: + "T_MEMTHING", "T_MEMDEPTHMAP", "pos"}: argument = t[key] string += key + " " + (quote_escape(argument) if \ str == type(argument) else str(argument)) + "\n"