CheckArtifactChance() public static méthode

public static CheckArtifactChance ( Mobile m, BaseCreature bc ) : bool
m Mobile
bc BaseCreature
Résultat bool
Exemple #1
0
        public override void OnKilledBy(Mobile mob)
        {
            base.OnKilledBy(mob);

            if (!CheckFisherArtifactChance() && Paragon.CheckArtifactChance(mob, this))
            {
                GiveArtifactTo(mob);
            }

            m_Fisher = null;
        }
Exemple #2
0
        public override void OnKilledBy(Mobile mob)
        {
            base.OnKilledBy(mob);

            if (Paragon.CheckArtifactChance(mob, this))
            {
                GiveArtifactTo(mob);

                if (mob == this.m_Fisher)
                    this.m_Fisher = null;
            }
        }
Exemple #3
0
        public override void OnDeath(Container c)
        {
            base.OnDeath(c);

            Mobile mobile = DemonKnight.FindRandomPlayer(this);

            if (Paragon.CheckArtifactChance(mobile, this))
            {
                switch (Utility.Random(4))
                {
                case 0: DemonKnight.DistributeArtifact(mobile, new Slither()); break;

                case 1: DemonKnight.DistributeArtifact(mobile, new IronwoodCompositeBow()); break;

                case 2: DemonKnight.DistributeArtifact(mobile, new MedusaBlood()); break;

                case 3: DemonKnight.DistributeArtifact(mobile, new MedusaStatue()); break;
                }
            }
        }