public override bool Start(Living living) { NoHoleEquipEffect noHoleEquipEffect = living.EffectList.GetOfType(eEffectType.NoHoleEquipEffect) as NoHoleEquipEffect; if (noHoleEquipEffect != null) { noHoleEquipEffect.m_probability = ((this.m_probability > noHoleEquipEffect.m_probability) ? this.m_probability : noHoleEquipEffect.m_probability); return(true); } return(base.Start(living)); }
public override bool Start(Living living) { NoHoleEquipEffect effect = living.EffectList.GetOfType(eEffectType.NoHoleEquipEffect) as NoHoleEquipEffect; 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) { NoHoleEquipEffect effect = living.EffectList.GetOfType(eEffectType.NoHoleEquipEffect) as NoHoleEquipEffect; 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); }