Example #1
0
        public override bool Start(Living living)
        {
            AtomBombEquipEffect atomBombEquipEffect = living.EffectList.GetOfType(eEffectType.AtomBomb) as AtomBombEquipEffect;

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

            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)
        {
            AtomBombEquipEffect effect = living.EffectList.GetOfType(eEffectType.AtomBomb) as AtomBombEquipEffect;
            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);
        }