From 26bb34823d884a619985cf91262f180e0ad4d207 Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Fri, 3 Jul 2020 13:40:17 -0400 Subject: fix(xan): Don't allow looking at invisible things Extract the conditional we're using to decide whether or not to render a given entity at a position, and use that when getting the list of entities to describe as a result of the "Look" command. Change-Id: I1ec86211c2fcbd984dd52338fb5631667c22c723 Reviewed-on: https://cl.tvl.fyi/c/depot/+/903 Reviewed-by: glittershark Reviewed-by: BuildkiteCI Tested-by: BuildkiteCI --- users/glittershark/xanthous/src/Xanthous/Game.hs | 1 + 1 file changed, 1 insertion(+) (limited to 'users/glittershark/xanthous/src/Xanthous/Game.hs') diff --git a/users/glittershark/xanthous/src/Xanthous/Game.hs b/users/glittershark/xanthous/src/Xanthous/Game.hs index 4ca6688919..89c23f0de8 100644 --- a/users/glittershark/xanthous/src/Xanthous/Game.hs +++ b/users/glittershark/xanthous/src/Xanthous/Game.hs @@ -17,6 +17,7 @@ module Xanthous.Game , updateCharacterVision , characterVisiblePositions , entitiesAtCharacter + , revealedEntitiesAtPosition -- * Messages , MessageHistory(..) -- cgit 1.4.1