From 6a0fd2e53b8fe864c3443f5f6c91fd5ce12010a8 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Mon, 2 Mar 2015 04:08:47 +0100 Subject: [PATCH] Server/py: Minor comment improvements. --- plomrogue-server.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/plomrogue-server.py b/plomrogue-server.py index 40cb299..7c67024 100755 --- a/plomrogue-server.py +++ b/plomrogue-server.py @@ -117,9 +117,9 @@ def record(command): def save_world(): - # Dummy for saving all commands to reconstruct current world state. - # Misses same optimizations as record() from the original record(). - # How to handle strings that contain ' or "? + """Save all commands needed to reconstruct current world state.""" + # TODO: Misses same optimizations as record() from the original record(). + # TODO: How to handle strings that contain ' or "? def mapsetter(key): def helper(id): @@ -504,6 +504,9 @@ def command_tcarries(str_int): world_db["Things"][val]["carried"] = True else: print("Ignoring: Thing not available for carrying.") + # Note that the whole carrying structure is different from the C version: + # Carried-ness is marked by a "carried" flag, not by Things containing + # Things internally. @test_Thing_id -- 2.30.2