Beispiel #1
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);
        }