Add debug command to reveal the game
Add a (debug) command to reveal all tiles on the game regardless of the character's vision, which'll make it easier to debug creature's behavior while they're not visible.
This commit is contained in:
parent
1a0f618a82
commit
abea2dcfac
7 changed files with 52 additions and 10 deletions
|
|
@ -155,6 +155,13 @@ handleCommand Open = do
|
|||
|
||||
handleCommand Wait = stepGame >> continue
|
||||
|
||||
handleCommand ToggleRevealAll = do
|
||||
val <- debugState . allRevealed <%= not
|
||||
say ["debug", "toggleRevealAll"] $ object [ "revealAll" A..= val ]
|
||||
continue
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
handlePromptEvent
|
||||
:: Text -- ^ Prompt message
|
||||
-> Prompt AppM
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue