X-Git-Url: https://plomlompom.com/repos/berlin_corona.txt?a=blobdiff_plain;f=client_prototype.py;h=2b8719922fd5ba4bdccf3a3921d8e8b125cba17b;hb=a845dce5a0f8a11ce9f8483c071a98f8d2fe9d55;hp=f5fc336791e5245518da7503a54d72f3610b6a76;hpb=87a95c28348a0d8ee25aa4c2faac3aebb39674c0;p=plomrogue diff --git a/client_prototype.py b/client_prototype.py index f5fc336..2b87199 100644 --- a/client_prototype.py +++ b/client_prototype.py @@ -101,7 +101,6 @@ def draw_screen(): j = win["start"][int(k == 0)] - sep_size if (j >= 0 and j < screen_size[int(k == 0)]): start = win["start"][k] - # start = start if start >= 0 else 0 end = win["start"][k] + win["size"][k] end = end if end < screen_size[k] else screen_size[k] if k: @@ -294,7 +293,6 @@ def cursed_main(stdscr): curses.noecho() curses.curs_set(False) - # stdscr.keypad(True) signal.signal(signal.SIGWINCH, lambda ignore_1, ignore_2: set_window_geometries()) set_window_geometries() @@ -516,6 +514,7 @@ io = { "path_worldstate": "server/worldstate" } commands = { + "A": (command_sender("ai"),), "D": (command_sender("drop", "inventory_selection"),), "P": (command_sender("pick_up"),), "Q": (command_quit,),