//-----------------------------------------------------------------------------
 // Overridden methods
 //-----------------------------------------------------------------------------
 public override void OnSeedHit(SeedType seedType, SeedEntity seed)
 {
     if (seedType == SeedType.Ember && !Properties.GetBoolean("lit", false)) {
         Light();
         seed.Destroy();
     }
 }
Exemple #2
0
 //-----------------------------------------------------------------------------
 // Overridden methods
 //-----------------------------------------------------------------------------
 public override void OnSeedHit(SeedType seedType, SeedEntity seed)
 {
     if (seedType == SeedType.Mystery && !isActivated) {
         isActivated		= true;
         sparkleIndex	= 0;
         timer			= 0;
     }
 }
Exemple #3
0
        public virtual void OnSeedHit(SeedEntity seed)
        {
            // For mystery seeds, create the effect for another random seed type.
            if (seed.SeedType == SeedType.Mystery) {
                int rand = GRandom.NextInt(4);
                if (rand == 0)
                    seed.SeedType = SeedType.Ember;
                else if (rand == 1)
                    seed.SeedType = SeedType.Scent;
                else if (rand == 2)
                    seed.SeedType = SeedType.Pegasus;
                else
                    seed.SeedType = SeedType.Gale;
            }

            seed.TriggerMonsterReaction(this);
        }
Exemple #4
0
 //-----------------------------------------------------------------------------
 // Interaction Methods
 //-----------------------------------------------------------------------------
 // Called when a seed of the given type hits this tile.
 public virtual void OnSeedHit(SeedType type, SeedEntity seed)
 {
 }