X-Git-Url: https://plomlompom.com/repos/berlin_corona.txt?a=blobdiff_plain;f=plugins%2Fclient%2FTheCrawlingEater.py;h=ffa630e1de7a9f3f66bef853b80fa54a769ed797;hb=8d8513ac6f09a4b4363e766d5d4c30c1f666a85b;hp=1bcf7af5687eb3137def118fda3a18ae5d2a463e;hpb=8ee1a43e70d13ca23e7dd6af808d32596171d480;p=plomrogue diff --git a/plugins/client/TheCrawlingEater.py b/plugins/client/TheCrawlingEater.py index 1bcf7af..ffa630e 100644 --- a/plugins/client/TheCrawlingEater.py +++ b/plugins/client/TheCrawlingEater.py @@ -59,8 +59,10 @@ def win_map(self): curses.init_pair(12, curses.COLOR_BLACK, curses.COLOR_YELLOW) curses.init_pair(13, curses.COLOR_BLACK, curses.COLOR_RED) curses.init_pair(14, curses.COLOR_BLACK, curses.COLOR_MAGENTA) + curses.init_pair(15, curses.COLOR_RED, curses.COLOR_GREEN) col_unknown = curses.color_pair(1) col_mem = curses.color_pair(1) + col_creature = curses.color_pair(15) col_player = curses.color_pair(8) earth_colors = [ curses.color_pair(4), @@ -110,7 +112,10 @@ def win_map(self): if char in charmap: char = charmap[char] elif char == "@": - attribute = col_player + attribute = col_creature + av_pos = world_data["avatar_position"] + if pos == av_pos[0] * world_data["map_size"] + av_pos[1]: + attribute = col_player winmap += [(char, attribute), bonus] if y % 2 == 0: winmap += " " @@ -138,12 +143,12 @@ windows_config[:] = [ {"config": [1, 33], "func": win_bar_maker(77, "%", "stomach"), "title": "stomach"}, - {"config": [1, 33], - "func": win_bar_maker(78, "%", "bowel"), - "title": "bowel"}, {"config": [1, 33], "func": win_bar_maker(79, "~", "kidney"), "title": "kidney"}, + {"config": [1, 33], + "func": win_bar_maker(78, "%", "bowel"), + "title": "bowel"}, {"config": [1, 33], "func": win_bar_maker(80, "~", "bladder"), "title": "bladder"},