/// <summary>
 /// Loots the crate, awarding the contents to the player.
 /// </summary>
 /// <param name="player">The player ot award the contents to.</param>
 public void Loot(Dwarf player)
 {
     if (this.ContainsVial)
     {
         player.Nitroglycerin++;
         this.ContainsVial = false;
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Heals the player using this medical crate.
 /// </summary>
 /// <param name="player">The player to heal.</param>
 public void Heal(Dwarf player)
 {
     player.Hitpoints += this.Healing;
     this.Healing = 0;
 }