home · contact · privacy
TCE: Transform non-player creatures dying into "X" wall, HUMILITY.
authorChristian Heller <c.heller@plomlompom.de>
Sat, 12 Mar 2016 20:22:49 +0000 (21:22 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Sat, 12 Mar 2016 20:22:49 +0000 (21:22 +0100)
plugins/server/TheCrawlingEater.py

index 1bfc7e7208686479794335a485a823724e952612..a9f17572635f30eeaf7349682b6f55d6c09a87ef 100644 (file)
@@ -192,6 +192,10 @@ def die(t, message):
         t["fovmap"] = bytearray(b' ' * (world_db["MAP_LENGTH"] ** 2))
         t["T_MEMMAP"][t["pos"]] = ord("@")
         log(message)
+    else:
+        world_db["MAP"][t["pos"]] = ord("5")
+        world_db["HUMILITY"] = t["T_KIDNEY"] + t["T_BLADDER"]
+        del world_db["Things"][t["T_ID"]]
 world_db["die"] = die