killoblogs.blogg.se

Tmodloader for terraria desktop
Tmodloader for terraria desktop










#Tmodloader for terraria desktop code

Return true to allow hitting the NPC, return false to block hitting the NPC, and return null to use the vanilla code for whether the NPC can be hit.

tmodloader for terraria desktop

More.ĬanBeHitByProjectile (Projectile projectile)Īllows you to determine whether this NPC can be hit by the given projectile. More.ĬanBeHitByItem (Player player, Item item)Īllows you to determine whether this NPC can be hit by the given melee weapon when swung. More.īossLoot (ref string name, ref int potionType)Īllows you to customize what happens when this boss dies, such as which name is displayed in the defeat message and what type of potion it drops. More.īossHeadSpriteEffects (ref SpriteEffects spriteEffects)Īllows you to flip this NPC's boss head icon on the map. Set index to -1 to stop the texture from being displayed. More.Īllows you to customize the boss head texture used by this NPC based on its state. More.Īllows you to customize the rotation of this NPC's boss head icon on the map. Override this if you do not want the properties to be set for you. More.Īutomatically sets certain static defaults. Use this method to either force or stop an autoload, or to change the default display name.

tmodloader for terraria desktop

Name is initialized to the overriding class name, texture is initialized to the namespace and overriding class name with periods replaced with slashes, and altTextures is initialized to null. Return true to allow autoloading by default returns the mod's autoload property. More.Īllows you to automatically load an NPC instead of using Mod.AddNPC. This will only be called if PreAI returns true. Allows you to determine how this NPC behaves.










Tmodloader for terraria desktop