Eating doesn't take time unless you actually eat

Make it so that opening the eat menu but not actually eating anything
(either because you cancel, or because there's nothing to eat) doesn't
step the game
This commit is contained in:
Griffin Smith 2019-11-30 22:48:29 -05:00
parent 65b1352ef2
commit e619dcd126

View file

@ -205,7 +205,7 @@ handleCommand Eat = do
character . characterHitpoints' += character . characterHitpoints' +=
edibleItem ^. hitpointsHealed . to fromIntegral edibleItem ^. hitpointsHealed . to fromIntegral
message msg $ object ["item" A..= item] message msg $ object ["item" A..= item]
stepGame -- TODO stepGame -- TODO
continue continue
handleCommand Read = do handleCommand Read = do