X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=plomrogue-server.py;h=4cb138a3a6da7b2af8b11fa80b84b6dc784d653f;hb=7c9c3b3cc0044de265b845eec1a71d9bc3577105;hp=c8cb0eebaa8548018f8fce0f990e7d784180d96b;hpb=063eb0e64a0a2122c5581a668217290eb0b01f2b;p=plomrogue diff --git a/plomrogue-server.py b/plomrogue-server.py index c8cb0ee..4cb138a 100755 --- a/plomrogue-server.py +++ b/plomrogue-server.py @@ -117,7 +117,7 @@ def record(command): def save_world(): - """Save all commands needed to reconstruct current world state.""" + """Save all commands needed to reconstruct current world state.""" # TODO: Misses same optimizations as record() from the original record(). def quote(string): @@ -291,8 +291,8 @@ def play_game(): def remake_map(): - # DUMMY. - print("I'd (re-)make the map now, if only I knew how.") + # DUMMY map creator. + world_db["MAP"] = bytearray(b'.' * (world_db["MAP_LENGTH"] ** 2)) def set_world_inactive(): @@ -369,7 +369,8 @@ def command_makeworld(seed_string): def command_maplength(maplength_string): # DUMMY. set_world_inactive() - # TODO: remove things, map + # TODO: remove map + world_db["Things"] = {} setter(None, "MAP_LENGTH", 1, 256)(maplength_string)