home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
TCE: Eat on every wall attack, not just on successful ones.
[plomrogue]
/
plugins
/
server
/
TheCrawlingEater.py
diff --git
a/plugins/server/TheCrawlingEater.py
b/plugins/server/TheCrawlingEater.py
index 52807b83019ae76ccf136a09510418c9c2c2aa40..ab88cadd54766d0e994fcb7be0f4f79d324635e7 100644
(file)
--- a/
plugins/server/TheCrawlingEater.py
+++ b/
plugins/server/TheCrawlingEater.py
@@
-126,14
+126,10
@@
def actor_eat(t):
height = world_db["MAP"][pos] - ord("0")
if t["T_STOMACH"] >= 32 or height == 5:
return
height = world_db["MAP"][pos] - ord("0")
if t["T_STOMACH"] >= 32 or height == 5:
return
- eaten = False
- if height == 3 and 0 == int(rand.next() % 2):
- t["T_STOMACH"] += height
- eaten = True
- elif height == 4 and 0 == int(rand.next() % 5):
- t["T_STOMACH"] += height
- eaten = True
+ t["T_STOMACH"] += 1
log("You EAT.")
log("You EAT.")
+ eaten = (height == 3 and 0 == int(rand.next() % 2)) or \
+ (height == 4 and 0 == int(rand.next() % 5))
if eaten:
world_db["MAP"][pos] = ord("0")
if t["T_STOMACH"] > 32:
if eaten:
world_db["MAP"][pos] = ord("0")
if t["T_STOMACH"] > 32: