IDamageModifier - SmArtKar/AthenaFramework GitHub Wiki
IDamageModifier
allows to modify outgoing or incoming damage
public interface IDamageModifier
{
public abstract (float, float) GetOutcomingDamageModifier(Thing target, ref List<string> excludedGlobal, Thing instigator, DamageInfo? dinfo, bool projectile = false);
public abstract (float, float) GetIncomingDamageModifier(Thing target, ref List<string> excludedGlobal, Thing instigator, DamageInfo? dinfo, bool projectile = false);
public abstract float OutgoingDamageMultiplier { get; }
// Must be added to AthenaCache.damageCache to work
// AthenaCache.AddCache(this, AthenaCache.damageCache, parent.thingIDNumber)
}