Skip to content

Commit

Permalink
The 'M' key should trigger Move action
Browse files Browse the repository at this point in the history
  • Loading branch information
mwunsch committed Oct 27, 2016
1 parent 7d9c330 commit 8758c8d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Main.elm
Expand Up @@ -194,6 +194,16 @@ update msg game =
54 ->
( lookupFighter 5, Cmd.none )

109 ->
case Player.getSelectedGangMember game.player of
Just _ ->
( { game | player = game.player |> \p -> { p | action = Action.Move } }
, Cmd.none
)

Nothing ->
( game, Cmd.none )

_ ->
( game, Cmd.none )

Expand Down

0 comments on commit 8758c8d

Please sign in to comment.