public void DelBuff(BuffEffectTypes type) { foreach (var buff in buffDict.Values) { if (BuffBook.HasEffect(buff.Id, type)) { buffDict.Remove(buff.Id); return; } } }
public bool HasBuff(BuffEffectTypes type) { foreach (var buff in buffDict.Values) { if (BuffBook.HasEffect(buff.Id, type)) { return(true); } } return(false); }
public static bool HasEffect(int id, BuffEffectTypes etype) { BuffConfig buffConfig = ConfigData.BuffDict[id]; foreach (int eff in buffConfig.Effect) { if ((int)etype == eff) { return true; } } return false; }
public static bool HasEffect(int id, BuffEffectTypes etype) { BuffConfig buffConfig = ConfigData.BuffDict[id]; foreach (int eff in buffConfig.Effect) { if ((int)etype == eff) { return(true); } } return(false); }
public bool HasBuff(BuffEffectTypes type) { foreach (var buff in buffDict.Values) { if (BuffBook.HasEffect(buff.Id,type)) { return true; } } return false; }