public override bool Start(Living living)
        {
            ArmorPiercerEquipEffect armorPiercerEquipEffect = living.EffectList.GetOfType(eEffectType.ArmorPiercer) as ArmorPiercerEquipEffect;

            if (armorPiercerEquipEffect != null)
            {
                armorPiercerEquipEffect.m_probability = ((this.m_probability > armorPiercerEquipEffect.m_probability) ? this.m_probability : armorPiercerEquipEffect.m_probability);
                return(true);
            }
            return(base.Start(living));
        }
Пример #2
0
        public override bool Start(Living living)
        {
            ArmorPiercerEquipEffect effect = living.EffectList.GetOfType(eEffectType.ArmorPiercer) as ArmorPiercerEquipEffect;

            if (effect != null)
            {
                effect.m_probability = m_probability > effect.m_probability ? m_probability : effect.m_probability;
                return(true);
            }
            else
            {
                return(base.Start(living));
            }
        }
        public override bool Start(Living living)
        {
            ArmorPiercerEquipEffect effect = living.EffectList.GetOfType(eEffectType.ArmorPiercer) as ArmorPiercerEquipEffect;
            bool result;

            if (effect != null)
            {
                effect.m_probability = ((this.m_probability > effect.m_probability) ? this.m_probability : effect.m_probability);
                result = true;
            }
            else
            {
                result = base.Start(living);
            }
            return(result);
        }