コード例 #1
0
        public override bool Start(Living living)
        {
            RecoverBloodEffect recoverBloodEffect = living.EffectList.GetOfType(eEffectType.RecoverBloodEffect) as RecoverBloodEffect;

            if (recoverBloodEffect == null)
            {
                return(base.Start(living));
            }
            this.m_probability = ((this.m_probability > recoverBloodEffect.m_probability) ? this.m_probability : recoverBloodEffect.m_probability);
            return(true);
        }
コード例 #2
0
        public override bool Start(Living living)
        {
            RecoverBloodEffect effect = living.EffectList.GetOfType(eEffectType.RecoverBloodEffect) as RecoverBloodEffect;
            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);
        }