public List <DamageThreshold> GetAllDamageThresholds() { Threshold = new DamageThreshold(damageType, damageValue, ThresholdType.Breakage); return(new List <DamageThreshold>() { Threshold }); }
/// <inheritdoc /> List <DamageThreshold> IOnDamageBehavior.GetAllDamageThresholds() { Threshold = new DamageThreshold(damageType, damageValue, ThresholdType.Destruction); return(new List <DamageThreshold>() { Threshold }); }
public Attack(string name, PokeType attackType, Condition cdn, DamageThreshold threshold, int PP, bool hasDebuff = false, bool hasDamage = false) { this.name = name; this.attackType = attackType; this.condition = cdn; this.threshold = threshold; this.PP = PP; this.hasDebuff = hasDebuff; this.hasDamage = hasDamage; }
protected override void WriteDataXML(XElement ele, ElderScrollsPlugin master) { XElement subEle; ele.TryPathTo("DamageResistance", true, out subEle); subEle.Value = DamageResistance.ToString(); ele.TryPathTo("Flags", true, out subEle); subEle.Value = Flags.ToString(); ele.TryPathTo("DamageThreshold", true, out subEle); subEle.Value = DamageThreshold.ToString("G15"); ele.TryPathTo("Unknown", true, out subEle); subEle.Value = Unknown.ToHex(); }
public DamageThresholdReached(DestructibleComponent parent, DamageThreshold threshold) { Parent = parent; Threshold = threshold; }