X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=plomrogue-server.py;h=a1e3a44f120530276d61fbbb3f1cc08f4438e705;hb=dff65f419bc0ac5af9fd2003c0f958d0c50e27cc;hp=cd54c86965c46d9cdd87530f2948d15c8df61e16;hpb=2b4005f1f4b4ca64d86af9ac35a92d60f6e7bc48;p=plomrogue diff --git a/plomrogue-server.py b/plomrogue-server.py index cd54c86..a1e3a44 100755 --- a/plomrogue-server.py +++ b/plomrogue-server.py @@ -164,7 +164,7 @@ def save_world(): string = "" for key in world_db: - if dict != type(world_db[key]): + if dict != type(world_db[key]) and key != "MAP": string = string + key + " " + str(world_db[key]) + "\n" string = string + helper("ThingActions", "TA_ID") string = string + helper("ThingTypes", "TT_ID", {"TT_CORPSE_ID": False}) @@ -482,7 +482,7 @@ def command_makeworld(seed_string): } # generate fov map? # TODO: Generate things (player first, with updated memory) - atomic_write(io_db["path_out"], "NEW_WORLD\n", do_append=True) + strong_write(io_db["file_out"], "NEW_WORLD\n") def command_maplength(maplength_string): @@ -800,7 +800,7 @@ commands_db = { """World state database. With sane default values.""" world_db = { - "TURN": 1, + "TURN": 0, "SEED_MAP": 0, "SEED_RANDOMNESS": 0, "PLAYER_TYPE": 0,