diff options
| author | troido <troido@hotmail.com> | 2018-01-03 00:04:10 +0100 |
|---|---|---|
| committer | troido <troido@hotmail.com> | 2018-01-03 00:04:10 +0100 |
| commit | f3affd98f361e391b32b52e060fda7c53feef574 (patch) | |
| tree | d65621ee4ef90fa149138daa2f4842bfdc61186c /asciifarm/keybindings/keybindings.hy | |
| parent | 543f8693426358eda26decafc8cefa2cd2b698e3 (diff) | |
fixed crash on attacking bug
Diffstat (limited to 'asciifarm/keybindings/keybindings.hy')
| -rw-r--r-- | asciifarm/keybindings/keybindings.hy | 5 |
1 files changed, 3 insertions, 2 deletions
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: |
