home · contact · privacy
Plugin: Add mission, fix slipper usage, change GAME_WON to FAVOR_STAGE.
[plomrogue] / plugins / client / PleaseTheIslandGod.py
1 from client.config.io import io
2 from client.config.world_data import world_data
3 world_data["GOD_FAVOR"] = 0
4 io["worldstate_read_order"] += [["GOD_FAVOR", "int"]]
5
6 def win_info(self):
7     winmap = "T: " + str(world_data["turn"]) \
8         + " H: " + str(world_data["lifepoints"]) \
9         + " S: " + str(world_data["satiation"]) \
10         + " G: " + str(world_data["GOD_FAVOR"])
11     winmap_size = [1, len(winmap)]
12     offset = [0, 0]
13     return offset, winmap_size, winmap
14
15 from client.config.windows import windows_config
16 from client.windows import win_log, win_inventory, win_look, win_map
17 windows_config[:] = [
18     {"config": [1, 33], "func": win_info, "title": "Info"},
19     {"config": [-7, 33], "func": win_log, "title": "Log"},
20     {"config": [4, 16], "func": win_inventory, "title": "Inventory"},
21     {"config": [4, 16], "func": win_look, "title": "Things here"},
22     {"config": [0, -34], "func": win_map, "title": "Map"}
23 ]
24 from client.window_management import set_windows
25 set_windows()