Skip to content
Permalink
Browse files

Game - add hole in the wall of AuxiliaryRoom

  • Loading branch information...
bobbymcr committed Dec 22, 2018
1 parent 3ad7f89 commit 96aa4f377328e49377c9378e8627a6abd087182a
@@ -11,7 +11,7 @@ public AuxiliaryRoom(MessageBus bus)
{
}

protected override string Description => "You are in the auxiliary room. There is a doorway to the west. There is a cliff to the east.";
protected override string Description => "You are in the auxiliary room. There is a hole in the wall. There is a doorway to the west. There is a cliff to the east.";

protected override bool GoCore(Word noun)
{
@@ -23,5 +23,16 @@ protected override bool GoCore(Word noun)

return base.GoCore(noun);
}

protected override bool LookAtCore(Word noun)
{
if (noun.Primary == Noun.Wall)
{
this.Output("Above the hole you see the words, \"INSERT COIN.\"");
return true;
}

return base.LookAtCore(noun);
}
}
}
@@ -11,6 +11,7 @@ internal sealed class Noun
public static readonly Noun Coin = new Noun("coin");
public static readonly Noun East = new Noun("east");
public static readonly Noun Table = new Noun("table");
public static readonly Noun Wall = new Noun("wall");
public static readonly Noun West = new Noun("west");

private readonly string noun;
@@ -1,4 +1,4 @@
You are in the main room. There is a doorway to the east.
There is a table here.
> You are in the auxiliary room. There is a doorway to the west. There is a cliff to the east.
> You are in the auxiliary room. There is a hole in the wall. There is a doorway to the west. There is a cliff to the east.
> You fall off a cliff. Game over.
@@ -28,5 +28,7 @@ read coin
take coin
look coin
go forth
go east
look wall
exit
-- END --
@@ -2,7 +2,7 @@ You are in the main room. There is a doorway to the east.
There is a table here.
> You say, "Hello," to no one in particular. No one answers.
> Where do you want to GO?
> You are in the auxiliary room. There is a doorway to the west. There is a cliff to the east.
> You are in the auxiliary room. There is a hole in the wall. There is a doorway to the west. There is a cliff to the east.
> You say, "Hello," to no one in particular. No one answers.
> You are in the main room. There is a doorway to the east.
There is a table here.
@@ -35,4 +35,6 @@ a coin
> You take the coin.
> It is a small gold coin with an inscription on the edge.
> You can't go that way.
> You are in the auxiliary room. There is a hole in the wall. There is a doorway to the west. There is a cliff to the east.
> Above the hole you see the words, "INSERT COIN."
>

0 comments on commit 96aa4f3

Please sign in to comment.
You can’t perform that action at this time.