public void ScanHamster(IPlayer sender, Hamster hamster)
 {
     if (this.Game.DiningRoom.Door.IsOpen)
     {
         sender.Reply($"You hold the {hamster} in front of the {this}. A short beep sounds.");
         sender.Room.SendText($"{sender} holds the {hamster} in front of the {this}. A short beep sounds.", sender);
     }
     else
     {
         sender.Reply($"You hold the {hamster} in front of the {this}. A short beep. and the {this.Game.DiningRoom.Door} jumps open.");
         sender.Room.SendText($"{sender} holds the {hamster} in front of the {this}. A short beep. and the {this.Game.DiningRoom.Door} jumps open.", sender);
         this.Game.DiningRoom.Door.Unlock();
     }
 }
Exemple #2
0
 public Cage(FindLostyGame game) : base(game)
 {
     this.Hamster = new Hamster(game);
     this.Inventory.InitialAdd(this.Hamster);
 }