From: Christian Heller Date: Mon, 2 Mar 2015 03:08:47 +0000 (+0100) Subject: Server/py: Minor comment improvements. X-Git-Tag: tce~447 X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/%7B%7Bdb.prefix%7D%7D/process_efforts?a=commitdiff_plain;h=6a0fd2e53b8fe864c3443f5f6c91fd5ce12010a8;p=plomrogue Server/py: Minor comment improvements. --- 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