Exemplo n.º 1
0
        public override bool Start(Living living)
        {
            AddBloodEffect addBloodEffect = living.EffectList.GetOfType(eEffectType.AddBloodEffect) as AddBloodEffect;

            if (addBloodEffect != null)
            {
                this.m_probability = ((this.m_probability > addBloodEffect.m_probability) ? this.m_probability : addBloodEffect.m_probability);
                return(true);
            }
            return(base.Start(living));
        }
Exemplo n.º 2
0
        public override bool Start(Living living)
        {
            AddBloodEffect effect = living.EffectList.GetOfType(eEffectType.AddBloodEffect) as AddBloodEffect;

            if (effect != null)
            {
                m_probability = m_probability > effect.m_probability ? m_probability : effect.m_probability;
                return(true);
            }
            else
            {
                return(base.Start(living));
            }
        }
Exemplo n.º 3
0
        public override bool Start(Living living)
        {
            AddBloodEffect effect = living.EffectList.GetOfType(eEffectType.AddBloodEffect) as AddBloodEffect;
            bool           result;

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