From add79b3869d3b36b4becc3b8345169a30e39ef0f Mon Sep 17 00:00:00 2001 From: Brian Rogers Date: Sun, 9 Dec 2018 06:56:38 -0800 Subject: [PATCH] Room - change unhandled look message --- core/src/Room.cs | 2 +- core/test/RoomTest.cs | 2 +- sample/test/walkthrough.out | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/Room.cs b/core/src/Room.cs index e5d021a..edd0f03 100644 --- a/core/src/Room.cs +++ b/core/src/Room.cs @@ -73,7 +73,7 @@ protected void Look(Word noun) } else if (!this.LookAt(noun)) { - this.Output($"I can't see any {noun} here."); + this.Output("You see nothing of interest."); } } diff --git a/core/test/RoomTest.cs b/core/test/RoomTest.cs index d675541..4550e75 100644 --- a/core/test/RoomTest.cs +++ b/core/test/RoomTest.cs @@ -167,7 +167,7 @@ public void ProcessLookUnknown() room.Enter(); bus.Send(new SentenceMessage(new Word("look", "VIEW"), new Word(string.Empty, "THING"))); - lastOutput.Should().Be("I can't see any THING here."); + lastOutput.Should().Be("You see nothing of interest."); } [Fact] diff --git a/sample/test/walkthrough.out b/sample/test/walkthrough.out index 78075df..aed7220 100644 --- a/sample/test/walkthrough.out +++ b/sample/test/walkthrough.out @@ -6,5 +6,5 @@ You are in the main room. There is a table here. > There is no care here. > It is an ordinary wooden table. > There is no key here. -> I can't see any sun here. +> You see nothing of interest. > \ No newline at end of file