From f3affd98f361e391b32b52e060fda7c53feef574 Mon Sep 17 00:00:00 2001 From: troido Date: Wed, 3 Jan 2018 00:04:10 +0100 Subject: fixed crash on attacking bug --- asciifarm/keybindings/keybindings.hy | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'asciifarm/keybindings') diff --git a/asciifarm/keybindings/keybindings.hy b/asciifarm/keybindings/keybindings.hy index a54b79a..b92eb74 100644 --- a/asciifarm/keybindings/keybindings.hy +++ b/asciifarm/keybindings/keybindings.hy @@ -15,13 +15,14 @@ "c" (.select (selector "ground") 1 True True) "x" (.select (selector "equipment") 1 True True) "z" (inp ["unequip" (selectorvalue "equipment")]) -"f" (doall [ +"f" (do [ (inp ["attack"]) (inp ["attack" "north"]) (inp ["attack" "south"]) (inp ["attack" "east"]) (inp ["attack" "west"])]) -"t" (self.parseMessage (self.display.getString)) ; This should not work, but somehow it does +"t" (self.parseMessage (self.display.getString)) +"KEY_ENTER" (self.parseMessage (self.display.getString)) "help" "\ Controls: wasd or arrows: -- cgit