Example #1
0
 public override void OnPickup(Unit u)
 {
     Snd_Pickup.CreateInstance().Play();
     Console.WriteLine(u + " picks up " + this + ".");
 }
Example #2
0
 public virtual void OnPickup(Unit u       )
 {
 }
Example #3
0
 public virtual void OnDrop(Unit u = null)
 {
 }
Example #4
0
 public override void OnPickup(Unit u)
 {
     Snd_Pickup.CreateInstance().Play();
     Dispose();
     u.Health += 40;
 }
Example #5
0
 public override void OnPickup(Unit u)
 {
     Snd_Pickup.CreateInstance().Play();
     Dispose();
     Console.WriteLine(u + " scarfs " + this + " down like it has a wasting illness. " + u.Health);
 }
Example #6
0
        public override void OnPickup(Unit u)
        {
            var game = World.Game;
            Snd_Pickup.CreateInstance().Play();
            Dispose();

            Console.WriteLine(u + " picks up " + this + " - " + (game.ArtifactsFound + 1) + " of " + game.ArtifactsTotal);
            game.ArtifactsFound++;
        }