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

            if (addLuckyEffect != null)
            {
                addLuckyEffect.m_probability = ((this.m_probability > addLuckyEffect.m_probability) ? this.m_probability : addLuckyEffect.m_probability);
                return(true);
            }
            return(base.Start(living));
        }
コード例 #2
0
ファイル: AddLuckyEffect.cs プロジェクト: uvbs/DDTank-3.0
        public override bool Start(Living living)
        {
            AddLuckyEffect effect = living.EffectList.GetOfType(eEffectType.AddLuckyEffect) as AddLuckyEffect;

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