public float GetTotalAttack() { float totalAttack = atp; List <FieldEffect> list = FieldEffectController.GetSlimeFieldEffect(); for (int i = 0; i < list.Count; i++) { if (list[i].targetStatus == "atp" && list[i].effect == FieldEffect.EffectType.Buff) { totalAttack = totalAttack + (atp * list[i].effectPower); } else if (list[i].targetStatus == "atp" && list[i].effect == FieldEffect.EffectType.Debuff) { totalAttack = totalAttack - (atp * list[i].effectPower); } } return(totalAttack); }
public float GetTotalRange() { float totalrange = range; List <FieldEffect> list = FieldEffectController.GetSlimeFieldEffect(); for (int i = 0; i < list.Count; i++) { if (list[i].targetStatus == "range" && list[i].effect == FieldEffect.EffectType.Buff) { totalrange = totalrange + (range * list[i].effectPower); } else if (list[i].targetStatus == "range" && list[i].effect == FieldEffect.EffectType.Debuff) { totalrange = totalrange - (range * list[i].effectPower); } } return(totalrange); }
public float GetTotalDefence() { float totalDef = def; List <FieldEffect> list = FieldEffectController.GetSlimeFieldEffect(); for (int i = 0; i < list.Count; i++) { if (list[i].targetStatus == "def" && list[i].effect == FieldEffect.EffectType.Buff) { totalDef = totalDef + (def * list[i].effectPower); } else if (list[i].targetStatus == "def" && list[i].effect == FieldEffect.EffectType.Debuff) { totalDef = totalDef - (def * list[i].effectPower); } } return(totalDef); }
///// Buff & Debuff//// public float GetTotalSpeed() { float totalspeed = speed; List <FieldEffect> list = FieldEffectController.GetSlimeFieldEffect(); for (int i = 0; i < list.Count; i++) { if (list[i].targetStatus == "speed" && list[i].effect == FieldEffect.EffectType.Buff) { totalspeed = totalspeed + (speed * list[i].effectPower); } else if (list[i].targetStatus == "speed" && list[i].effect == FieldEffect.EffectType.Debuff) { totalspeed = totalspeed - (speed * list[i].effectPower); } } return(totalspeed); }