Ejemplo n.º 1
0
        public void TrapGoesOff()
        {
            this.Speak("Trap: " + (this.Trap.Humanize(LetterCasing.Title)) + "!");
            TSession session = this.Session;

            if (this.Trap == TrapId.Fireball)
            {
                this.Fireball(session);
                foreach (var neighbour in this.Neighbours)
                {
                    neighbour.Fireball(session);
                }
            }
            else if (this.Trap == TrapId.EmpoweredFireball)
            {
                this.Fireball(session);
                foreach (var neighbour in this.Neighbours)
                {
                    neighbour.Fireball(session);
                    foreach (var neighbour2 in neighbour.Neighbours)
                    {
                        neighbour2.Fireball(session);
                    }
                }
            }

            this.Trap = TrapId.NotTrapped;
        }
Ejemplo n.º 2
0
 public void AddTag(string text)
 {
     this.Tags.Add(text);
     if (text == HauntedHouseTags.Bomb)
     {
         this.Trap = TrapId.EmpoweredFireball;
     }
     else if (text == MonasteryTags.FireballTrapHere)
     {
         this.Trap = TrapId.Fireball;
     }
     else if (text == HauntedHouseTags.MainDoor)
     {
         this.Trap = TrapId.Fireball;
     }
     else if (text == HauntedHouseTags.MechantChest)
     {
         this.Trap = TrapId.Fireball;
     }
     else if (text == MonasteryTags.InfiniFire)
     {
         this.Heat.FuelRemaining = float.MaxValue;
     }
 }