home
·
contact
·
privacy
projects
/
plomrogue
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d87585b
)
Server/py: Minor comment improvements.
author
Christian Heller
<c.heller@plomlompom.de>
Mon, 2 Mar 2015 03:08:47 +0000
(
04:08
+0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Mon, 2 Mar 2015 03:08:47 +0000
(
04:08
+0100)
plomrogue-server.py
patch
|
blob
|
history
diff --git
a/plomrogue-server.py
b/plomrogue-server.py
index 40cb299a05f1c2e8bab006d0489e09284e75ebbd..7c67024f39d6e7e4b17aa00912feb839c7597e9f 100755
(executable)
--- a/
plomrogue-server.py
+++ b/
plomrogue-server.py
@@
-117,9
+117,9
@@
def record(command):
def save_world():
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):
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.")
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
@test_Thing_id