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: Only create exit between six holes.
[plomrogue]
/
plugins
/
server
/
TheCrawlingEater.py
diff --git
a/plugins/server/TheCrawlingEater.py
b/plugins/server/TheCrawlingEater.py
index 798ad57c0e31fd14e85d6412e97f3f6030c8aec3..850094ddb1c53608fa0e8630bffe8a8dc3b41110 100644
(file)
--- a/
plugins/server/TheCrawlingEater.py
+++ b/
plugins/server/TheCrawlingEater.py
@@
-260,7
+260,8
@@
def actor_move(t):
log("You now have the DEATH touch.")
if world_db["GRACE"] < 24:
log("You will now LEVITATE over holes.")
log("You now have the DEATH touch.")
if world_db["GRACE"] < 24:
log("You will now LEVITATE over holes.")
- world_db["GRACE"] += 8
+ if world_db["GRACE"] <= 24:
+ world_db["GRACE"] += 8
elif t == world_db["Things"][0]:
log("You try to MOVE there, but fail.")
elif t == world_db["Things"][0]:
log("You try to MOVE there, but fail.")
@@
-481,7
+482,7
@@
def turn_over():
dirs = "edcxsw"
for i in range(len(dirs)):
score += libpr.get_neighbor_score(i)
dirs = "edcxsw"
for i in range(len(dirs)):
score += libpr.get_neighbor_score(i)
- if score ==
5 or score ==
6:
+ if score == 6:
world_db["MAP"][pos] = ord("&")
libpr.free_score_map()
world_db["TURN"] += 1
world_db["MAP"][pos] = ord("&")
libpr.free_score_map()
world_db["TURN"] += 1