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:
599eca0
)
Server: Save PLUGIN command at top of save file.
author
Christian Heller
<c.heller@plomlompom.de>
Tue, 23 Feb 2016 21:12:06 +0000
(22:12 +0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Tue, 23 Feb 2016 21:12:06 +0000
(22:12 +0100)
server/io.py
patch
|
blob
|
history
diff --git
a/server/io.py
b/server/io.py
index ac7558efae318d99efa53105c5882a40f86f1515..877e525e3b23c14eccff83df2e9c572fd99bb7b1 100644
(file)
--- a/
server/io.py
+++ b/
server/io.py
@@
-179,13
+179,13
@@
def save_world():
return string
string = ""
return string
string = ""
+ for plugin in world_db["PLUGIN"]:
+ string = string + "PLUGIN " + plugin + "\n"
for key in sorted(world_db.keys()):
if (not isinstance(world_db[key], dict) and
not isinstance(world_db[key], list)) and key != "MAP" and \
key != "WORLD_ACTIVE":
string = string + key + " " + str(world_db[key]) + "\n"
for key in sorted(world_db.keys()):
if (not isinstance(world_db[key], dict) and
not isinstance(world_db[key], list)) and key != "MAP" and \
key != "WORLD_ACTIVE":
string = string + key + " " + str(world_db[key]) + "\n"
- for plugin in world_db["PLUGIN"]:
- string = string + "PLUGIN " + plugin + "\n"
string = string + mapsetter("MAP")()
string = string + helper("ThingActions", "TA_ID")
string = string + helper("ThingTypes", "TT_ID", {"TT_CORPSE_ID": False})
string = string + mapsetter("MAP")()
string = string + helper("ThingActions", "TA_ID")
string = string + helper("ThingTypes", "TT_ID", {"TT_CORPSE_ID": False})