// REFACTOR_TODO: Remove BuffT from moves and just use DeltStat DeltStat GetDeltStatFromBuffT(buffType buffT) { switch (buffT) { case buffType.Heal: return(DeltStat.GPA); case buffType.Truth: return(DeltStat.Truth); case buffType.Courage: return(DeltStat.Courage); case buffType.Faith: return(DeltStat.Faith); case buffType.Power: return(DeltStat.Power); case buffType.ChillToPull: return(DeltStat.ChillToPull); default: throw new NotImplementedException(); } }
public Buff(buffType type, float value) { this.value = value; this.type = type; time = value * 0.7f < 5 ? 5 : value * 0.7f; }
public BuffItem(string name) : base(name) { var index = System.Array.IndexOf(buffAttribs, name); type = (buffType)System.Enum.Parse(typeof(buffType), buffAttribs[index + 1]); size = (buffSize)System.Enum.Parse(typeof(buffSize), buffAttribs[index + 2]); buff = int.Parse(buffAttribs[index + 3], System.Globalization.CultureInfo.InvariantCulture.NumberFormat); }
public void RemoveBuff(float value, buffType type) { buff b = buffValues.Find((bf) => { return(bf.value == value && bf.type == type); }); buffValues.Remove(b); BuffValue = CalcBuffValue(); }
public buff(float value, buffType type) { this.value = value; this.type = type; }
public void AddBuff(float value, buffType type) { buffValues.Add(new buff(value, type)); BuffValue = CalcBuffValue(); }