示例#1
0
        public override bool Start(Living living)
        {
            NoHoleEquipEffect noHoleEquipEffect = living.EffectList.GetOfType(eEffectType.NoHoleEquipEffect) as NoHoleEquipEffect;

            if (noHoleEquipEffect != null)
            {
                noHoleEquipEffect.m_probability = ((this.m_probability > noHoleEquipEffect.m_probability) ? this.m_probability : noHoleEquipEffect.m_probability);
                return(true);
            }
            return(base.Start(living));
        }
示例#2
0
        public override bool Start(Living living)
        {
            NoHoleEquipEffect effect = living.EffectList.GetOfType(eEffectType.NoHoleEquipEffect) as NoHoleEquipEffect;

            if (effect != null)
            {
                effect.m_probability = m_probability > effect.m_probability ? m_probability : effect.m_probability;
                return(true);
            }
            else
            {
                return(base.Start(living));
            }
        }
示例#3
0
        public override bool Start(Living living)
        {
            NoHoleEquipEffect effect = living.EffectList.GetOfType(eEffectType.NoHoleEquipEffect) as NoHoleEquipEffect;
            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);
        }