예제 #1
0
        public override bool Start(Living living)
        {
            AddTurnEquipEffect addTurnEquipEffect = living.EffectList.GetOfType(eEffectType.AddTurnEquipEffect) as AddTurnEquipEffect;

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

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