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: Add win condition.
[plomrogue]
/
plugins
/
client
/
TheCrawlingEater.py
diff --git
a/plugins/client/TheCrawlingEater.py
b/plugins/client/TheCrawlingEater.py
index 7630a6e42ea13e9ae782ecf6af6faf1379c35bfa..6798e9c23f5d022eb47d475a7b54354857c23e69 100644
(file)
--- a/
plugins/client/TheCrawlingEater.py
+++ b/
plugins/client/TheCrawlingEater.py
@@
-28,7
+28,8
@@
def win_map(self):
"3": "%",
"4": "#",
"5": "X",
"3": "%",
"4": "#",
"5": "X",
- "-": "O",
+ "*": "O",
+ "&": "0",
}
win_size = self.size
offset = [0, 0]
}
win_size = self.size
offset = [0, 0]
@@
-101,12
+102,16
@@
def win_map(self):
winmap += [(char, attribute), bonus]
else:
wetval = ord(world_data["wetmap"][pos]) - ord("0")
winmap += [(char, attribute), bonus]
else:
wetval = ord(world_data["wetmap"][pos]) - ord("0")
- if ord("0") <= ord(char) <= ord("5"):
- mapval = ord(char) - ord("0")
+ if char in "012345-+":
+ mapval = 0
+ if char not in "-+":
+ mapval = ord(char) - ord("0")
if 1 <= wetval <= 5:
attribute = water_colors[wetval + (mapval - 1)]
else:
attribute = earth_colors[mapval]
if 1 <= wetval <= 5:
attribute = water_colors[wetval + (mapval - 1)]
else:
attribute = earth_colors[mapval]
+ if char == "&":
+ attribute = col_player
if char in charmap:
char = charmap[char]
elif char == "@":
if char in charmap:
char = charmap[char]
elif char == "@":
@@
-140,7
+145,7
@@
windows_config[:] = [
{"config": [0, -34],
"func": win_map,
"scroll_hints": False,
{"config": [0, -34],
"func": win_map,
"scroll_hints": False,
- "title": "T
he Crawling Eater
"},
+ "title": "T
HE CRAWLING EATER
"},
{"config": [1, 33],
"func": win_bar_maker(77, "%", "stomach"),
"scroll_hints": False,
{"config": [1, 33],
"func": win_bar_maker(77, "%", "stomach"),
"scroll_hints": False,