home · contact · privacy
7DRL: Don't save world_db["altar"].
[plomrogue] / roguelike-server
index f6d2601c64efbb3eb20c73fe9b749f514d4fffac..4de557c205b9f0d9bbd8a7a532025deb9a735bf5 100755 (executable)
@@ -212,6 +212,7 @@ def save_world():
     string = ""
     for key in world_db:
         if (dict != type(world_db[key])
+            and key != "altar"  # #
             and key != "MAP" and key != "WORLD_ACTIVE"):
             string = string + key + " " + str(world_db[key]) + "\n"
     string = string + mapsetter("MAP")()
@@ -608,7 +609,7 @@ def build_fov_map(t):
 def log_help():
     """Send quick usage info to log."""
     strong_write(io_db["file_out"], "LOG "
-                 + "Use 'w'/'e'/'s'/'d'/'x'/'c' to move.\n")
+                 + "Use 'w'/'e'/'s'/'d'/'x'/'c' to move, and 'w' to wait.\n")
     strong_write(io_db["file_out"], "LOG "
                  + "Use 'p' to pick up objects, and 'D' to drop them.\n")
     strong_write(io_db["file_out"], "LOG "
@@ -619,6 +620,7 @@ def log_help():
                  + "Use 'l' to toggle 'look' mode (move an exploration cursor "
                  + "instead of the player over the map).\n")
     strong_write(io_db["file_out"], "LOG See README file for more details.\n")
+    strong_write(io_db["file_out"], "LOG \n")
 
 
 def decrement_lifepoints(t):
@@ -644,6 +646,8 @@ def decrement_lifepoints(t):
         if world_db["Things"][0] == t:
             t["fovmap"] = bytearray(b' ' * (world_db["MAP_LENGTH"] ** 2))
             strong_write(io_db["file_out"], "LOG You die.\n")
+            strong_write(io_db["file_out"],
+                         "LOG See README on how to start over.\n")
         else:
             t["fovmap"] = False
             t["T_MEMMAP"] = False
@@ -1783,7 +1787,7 @@ commands_db = {
     "TT_START_NUMBER": (1, False, setter("ThingType", "TT_START_NUMBER",
                                          0, 255)),
     "TT_PROLIFERATE": (1, False, setter("ThingType", "TT_PROLIFERATE",
-                                        0, 255)),
+                                        0, 65535)),
     "TT_LIFEPOINTS": (1, False, setter("ThingType", "TT_LIFEPOINTS", 0, 255)),
     "TT_STORAGE": (1, False, setter("ThingType", "TT_STORAGE", 0, 255)),  # #
     "T_ID": (1, False, command_tid),