diff --git a/simulator/src/main/scala/scienceworld/actions/ActionLook.scala b/simulator/src/main/scala/scienceworld/actions/ActionLook.scala index 437cf299..255045b3 100644 --- a/simulator/src/main/scala/scienceworld/actions/ActionLook.scala +++ b/simulator/src/main/scala/scienceworld/actions/ActionLook.scala @@ -4,6 +4,7 @@ import language.model.{ActionExpr, ActionExprIdentifier, ActionExprOR, ActionExp import scienceworld.input.ActionDefinitions.mkActionRequest import scienceworld.input.{ActionDefinitions, ActionHandler} import scienceworld.objects.agent.Agent +import scienceworld.objects.portal.Portal import scienceworld.struct.EnvObject import scienceworld.struct.EnvObject._ import util.StringHelpers @@ -84,7 +85,23 @@ class ActionLookAt(action:ActionRequestDef, assignments:Map[String, EnvObject]) val (invalidStr, isValid) = ActionLookAt.isValidAction(assignments) if (!isValid) return (invalidStr, false) - val objDescription = obj.getDescriptionSafe(mode = MODE_DETAILED).getOrElse("