/// <summary> /// Standard ImbiberBuff Constructor with no ID provided /// </summary> /// <param name="name">Nqame of Buff Effect</param> /// <param name="buff">The ImbiberBuff that this Effect will apply</param> /// <param name="intensity">The strength of the buff</param> /// <param name="negatedEffect">The Effect that this Effect negates/is negated by</param> public BuffEffect(string name, ImbiberBuff buff, int intensity) { id = -1; this.name = (name == "") ? "Unnamed Buff Effect" : name; this.buff = buff; 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)); }