
More.Īllows you to safely unload things you added in Load. More.Īllows you to modify the properties after initial loading has completed.
#Terraria autotrash tmodloader mod
Beware that mod content has not finished loading here, things like ModContent lookup tables or ID Sets are not fully populated. More.Īllows you to perform one-time loading tasks. Useful for items that can be disabled by a config. Public Member Functions inherited from Īllows you to stop Mod.AddContent from actually adding this content. The lines usable are "Damage", "CritChance", "Speed", and "Knockback". This lets you enable or disable standard statistical tooltip lines displaying on items associated with this DamageClass. ShowStatTooltipLine ( Player player, string lineName) If you make a new ModType, seal this override, and call SetStaticDefaults in it. This lets you define default stat modifiers for all items of this class (e.g. For a more in-depth explanation and demonstration, refer to ExampleMod/Content/DamageClasses/ExampleDamageClass. Any given DamageClass will also never call this method for itself. By default, this will return StatInheritanceData.Full for DamageClass.Generic, and StatInheritanceData.None for any other.

This is used to allow extensive specifications for what your damage class can and can't benefit from in terms of other classes' stat bonuses. This returns a struct called StatInheritanceData. This lets you define the classes that this DamageClass will benefit from (other than itself) for the purposes of stat bonuses, such as damage and crit chance. GetModifierInheritance ( DamageClass damageClass)

Returns false in all cases by default, which does not let any other classes' effects trigger on this DamageClass. This lets you define the classes that this DamageClass will count as (other than itself) for the purpose of armor and accessory effects, such as Spectre armor's bolts on magic attacks, or Magma Stone's Hellfire debuff on melee attacks. GetEffectInheritance ( DamageClass damageClass)
