/// <summary> /// Standard Debuff Effect Constructor with no ID provided /// </summary> public DebuffEffect(string name, ImbiberDebuff debuff, int intensity) { id = -1; this.name = (name == "") ? "Unnamed Debuff Effect" : name; this.debuff = debuff; this.intensity = (intensity < 1) ? 1 : intensity; }
/// <summary> /// Determines whether the given buff and debuff are opposites. /// </summary> /// <param name="buff">The buff to compare</param> /// <param name="debuff">The debuff to compare</param> /// <returns></returns> protected bool areBuffAndDebuffOpposite(ImbiberBuff buff, ImbiberDebuff debuff) { return((buff == ImbiberBuff.Shielding && debuff == ImbiberDebuff.Weakness) || (buff == ImbiberBuff.Barrier && debuff == ImbiberDebuff.Dullness) || (buff == ImbiberBuff.Speed && debuff == ImbiberDebuff.Slowness) || (buff == ImbiberBuff.Aim && debuff == ImbiberDebuff.Blindness)); }