X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=plugins%2Fclient%2FPleaseTheIslandGod.py;h=808d7938afec0445f295c3dfb08e55bd3860ddce;hb=32c8b0d55c091b10ba683621d7881ef57ce8a88a;hp=91b9c562ee9057621ac7a18a4ed79e221990a66c;hpb=b6163694eb06e14eeed3b8436c60944abe2022e1;p=plomrogue diff --git a/plugins/client/PleaseTheIslandGod.py b/plugins/client/PleaseTheIslandGod.py index 91b9c56..808d793 100644 --- a/plugins/client/PleaseTheIslandGod.py +++ b/plugins/client/PleaseTheIslandGod.py @@ -1,5 +1,7 @@ from client.config.io import io from client.config.world_data import world_data +world_data["log"][-2] = "STATS OVERVIEW: " \ +"T: turn, H: health, S: satiation, G: god's favor." world_data["GOD_FAVOR"] = 0 io["worldstate_read_order"] += [["GOD_FAVOR", "int"]] world_data["metamap_A"] = "" @@ -116,9 +118,17 @@ def win_map(self): elif char == "=": attribute = col_lumber bonus = (" ", attribute) - if len(world_data["metamap_A"]) > 0 and \ - world_data["metamap_A"][pos] == "2": - bonus = ("+", col_stack) + if len(world_data["metamap_A"]) > 0: + if world_data["metamap_A"][pos] == "2": + bonus = ("+", col_stack) + elif not world_data["metamap_A"][pos] in "01": + c = world_data["metamap_B"][pos] + if world_data["metamap_A"][pos] == "a": + bonus = (c, col_health_bad) + elif world_data["metamap_A"][pos] == "b": + bonus = (c, col_health_middle) + elif world_data["metamap_A"][pos] == "c": + bonus = (c, col_health_good) winmap += [(char, attribute), bonus] if y % 2 == 0: winmap += " " @@ -127,11 +137,11 @@ def win_map(self): from client.config.windows import windows_config from client.windows import win_log, win_inventory, win_look windows_config[:] = [ - {"config": [1, 33], "func": win_info, "title": "Info"}, + {"config": [1, 33], "func": win_info, "title": "Stats"}, {"config": [-7, 33], "func": win_log, "title": "Log"}, {"config": [4, 16], "func": win_inventory, "title": "Inventory"}, {"config": [4, 16], "func": win_look, "title": "Things here"}, - {"config": [0, -34], "func": win_map, "title": "Map"} + {"config": [0, -34], "func": win_map, "title": "PLEASE THE ISLAND GOD"} ] from client.window_management import set_windows set_windows()