home · contact · privacy
Server/py: Create dummy map in remake_map().
authorChristian Heller <c.heller@plomlompom.de>
Mon, 2 Mar 2015 04:42:01 +0000 (05:42 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Mon, 2 Mar 2015 04:42:01 +0000 (05:42 +0100)
plomrogue-server.py

index 99f1c6017d38aaa2fe6e9c77c1c3e51ca3f24050..4cb138a3a6da7b2af8b11fa80b84b6dc784d653f 100755 (executable)
@@ -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():