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: Prefix hole creation with crack hierarchy, fix some bugs.
[plomrogue]
/
plugins
/
client
/
TheCrawlingEater.py
diff --git
a/plugins/client/TheCrawlingEater.py
b/plugins/client/TheCrawlingEater.py
index 91eadd2ef177e0b6939775e902cfc0b13bd5c244..1685f33866a5d742e2d75154a5f57d679d763267 100644
(file)
--- a/
plugins/client/TheCrawlingEater.py
+++ b/
plugins/client/TheCrawlingEater.py
@@
-28,7
+28,7
@@
def win_map(self):
"3": "%",
"4": "#",
"5": "X",
"3": "%",
"4": "#",
"5": "X",
- "
-
": "O",
+ "
*
": "O",
}
win_size = self.size
offset = [0, 0]
}
win_size = self.size
offset = [0, 0]
@@
-101,8
+101,10
@@
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:
if 1 <= wetval <= 5:
attribute = water_colors[wetval + (mapval - 1)]
else: