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:
c1a78df
)
Server/py: Fix bug of not understanding TT_LIFEPOINTS command.
author
Christian Heller
<c.heller@plomlompom.de>
Sat, 28 Feb 2015 14:19:35 +0000
(15:19 +0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Sat, 28 Feb 2015 14:19:35 +0000
(15:19 +0100)
plomrogue-server.py
patch
|
blob
|
history
diff --git
a/plomrogue-server.py
b/plomrogue-server.py
index 1792a4a6a12ede5a90e528e5f1d43c568d56d55f..4945462ca623565036ab8b9fe77954f6f4d83dc9 100755
(executable)
--- a/
plomrogue-server.py
+++ b/
plomrogue-server.py
@@
-131,6
+131,8
@@
def save_world():
tt_string = tt_string + "TT_ID " + str(id) + "\n" + \
"TT_CONSUMABLE " + \
str(tt["TT_CONSUMABLE"]) + "\n" + \
tt_string = tt_string + "TT_ID " + str(id) + "\n" + \
"TT_CONSUMABLE " + \
str(tt["TT_CONSUMABLE"]) + "\n" + \
+ "TT_LIFEPOINTS " + \
+ str(tt["TT_LIFEPOINTS"]) + "\n" + \
"TT_CORPSE_ID " + \
str(tt["TT_CORPSE_ID"]) + "\n" + \
"TT_PROLIFERATE " + \
"TT_CORPSE_ID " + \
str(tt["TT_CORPSE_ID"]) + "\n" + \
"TT_PROLIFERATE " + \
@@
-374,6
+376,7
@@
def command_ttid(id_string):
world_db["ThingTypes"][id] = {
"TT_NAME": "(none)",
"TT_CONSUMABLE": 0,
world_db["ThingTypes"][id] = {
"TT_NAME": "(none)",
"TT_CONSUMABLE": 0,
+ "TT_LIFEPOINTS": 0,
"TT_PROLIFERATE": 0,
"TT_START_NUMBER": 0,
"TT_SYMBOL": "?",
"TT_PROLIFERATE": 0,
"TT_START_NUMBER": 0,
"TT_SYMBOL": "?",
@@
-525,7
+528,9
@@
commands_db = {
"TT_START_NUMBER": (1, False, ThingType_value_setter("TT_START_NUMBER",
0, 255)),
"TT_PROLIFERATE": (1, False, ThingType_value_setter("TT_PROLIFERATE",
"TT_START_NUMBER": (1, False, ThingType_value_setter("TT_START_NUMBER",
0, 255)),
"TT_PROLIFERATE": (1, False, ThingType_value_setter("TT_PROLIFERATE",
- 0, 255))
+ 0, 255)),
+ "TT_LIFEPOINTS": (1, False, ThingType_value_setter("TT_LIFEPOINTS",
+ 0, 255))
}
}