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)); }
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)); } }
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); }