home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Plugin: Simplify decrement_lifepoints.
[plomrogue]
/
plugins
/
server
/
PleaseTheIslandGod.py
diff --git
a/plugins/server/PleaseTheIslandGod.py
b/plugins/server/PleaseTheIslandGod.py
index f513300209122f240f762cfd829ca45ff8665524..4005f28b81e7a4b4d618feb574ca18792ccc0e6a 100644
(file)
--- a/
plugins/server/PleaseTheIslandGod.py
+++ b/
plugins/server/PleaseTheIslandGod.py
@@
-321,7
+321,6
@@
def decrement_lifepoints(t):
t["T_LIFEPOINTS"] -= 1
_id = [_id for _id in world_db["Things"] if world_db["Things"][_id] == t][0]
if 0 == t["T_LIFEPOINTS"]:
t["T_LIFEPOINTS"] -= 1
_id = [_id for _id in world_db["Things"] if world_db["Things"][_id] == t][0]
if 0 == t["T_LIFEPOINTS"]:
- sadness = world_db["ThingTypes"][t["T_TYPE"]]["TT_LIFEPOINTS"]
for id in t["T_CARRIES"]:
t["T_CARRIES"].remove(id)
world_db["Things"][id]["T_POSY"] = t["T_POSY"]
for id in t["T_CARRIES"]:
t["T_CARRIES"].remove(id)
world_db["Things"][id]["T_POSY"] = t["T_POSY"]
@@
-337,7
+336,7
@@
def decrement_lifepoints(t):
t["T_MEMMAP"] = False
t["T_MEMDEPTHMAP"] = False
t["T_MEMTHING"] = []
t["T_MEMMAP"] = False
t["T_MEMDEPTHMAP"] = False
t["T_MEMTHING"] = []
- return
sadness
+ return
world_db["ThingTypes"][t["T_TYPE"]]["TT_LIFEPOINTS"]
return 0
def actor_move(t):
return 0
def actor_move(t):