From 352c75630d8aecd2f5329af677281b7f018eebe3 Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Sat, 30 Oct 2021 11:55:32 -0400 Subject: feat(gs/xanthous): Send message when resting Change-Id: Ib1e7ae6dfcbc2d2e86a28b401e67cd5dd22d6281 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3763 Reviewed-by: grfn Tested-by: BuildkiteCI --- users/grfn/xanthous/src/Xanthous/App.hs | 5 ++++- users/grfn/xanthous/src/Xanthous/messages.yaml | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/users/grfn/xanthous/src/Xanthous/App.hs b/users/grfn/xanthous/src/Xanthous/App.hs index 8c5cffc9f859..9558c17bcd6c 100644 --- a/users/grfn/xanthous/src/Xanthous/App.hs +++ b/users/grfn/xanthous/src/Xanthous/App.hs @@ -342,7 +342,10 @@ handleCommand (StartAutoMove dir) = do runAutocommand $ AutoMove dir continue -handleCommand Rest = runAutocommand AutoRest >> continue +handleCommand Rest = do + say_ ["autocommands", "resting"] + runAutocommand AutoRest + continue -- diff --git a/users/grfn/xanthous/src/Xanthous/messages.yaml b/users/grfn/xanthous/src/Xanthous/messages.yaml index b50dc321fd28..b26425743319 100644 --- a/users/grfn/xanthous/src/Xanthous/messages.yaml +++ b/users/grfn/xanthous/src/Xanthous/messages.yaml @@ -128,6 +128,7 @@ drop: autocommands: enemyInSight: There's a {{firstEntity.creatureType.name}} nearby! + resting: Resting... doneResting: Done resting ### -- cgit 1.4.1