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: Make sure stomach is never fuller than 32.
[plomrogue]
/
plugins
/
client
/
TheCrawlingEater.py
diff --git
a/plugins/client/TheCrawlingEater.py
b/plugins/client/TheCrawlingEater.py
index e362409740c7f20f47b91400b40b63be8725c424..a4be1a588fcc89bcec2f37740215122486f1b5e5 100644
(file)
--- a/
plugins/client/TheCrawlingEater.py
+++ b/
plugins/client/TheCrawlingEater.py
@@
-36,8
+36,8
@@
def win_map(self):
col_unknown = curses.color_pair(1)
col_mem_obstacle = curses.color_pair(2)
col_mem = curses.color_pair(2)
col_unknown = curses.color_pair(1)
col_mem_obstacle = curses.color_pair(2)
col_mem = curses.color_pair(2)
- col_
ground = curses.color_pair(3
)
- col_
stone
= curses.color_pair(4)
+ col_
stone = curses.color_pair(1
)
+ col_
dirt
= curses.color_pair(4)
col_earth = curses.color_pair(3)
col_player = curses.color_pair(1)
for y in range(world_data["map_size"]):
col_earth = curses.color_pair(3)
col_player = curses.color_pair(1)
for y in range(world_data["map_size"]):
@@
-62,9
+62,13
@@
def win_map(self):
else:
attribute = col_stone
if char == ".":
else:
attribute = col_stone
if char == ".":
- attribute = col_
ground
-
if char == "#
":
+ attribute = col_
dirt
+
elif char == ":
":
attribute = col_earth
attribute = col_earth
+ elif char == "%":
+ attribute = col_earth
+ elif char == "#":
+ attribute = col_dirt
elif char == "@":
attribute = col_player
bonus = (" ", attribute)
elif char == "@":
attribute = col_player
bonus = (" ", attribute)
@@
-86,3
+90,6
@@
windows_config[:] = [
]
from client.window_management import set_windows
set_windows()
]
from client.window_management import set_windows
set_windows()
+from client.commands import command_sender
+from client.config.commands import commands
+commands["D"] = (command_sender("drop"),)