My understanding is that you have to apply a shader to the tooltip line when it's drawn. Your best bet would be trying to find an open source mod that does this, and see how they do it in code.
Based on the error it's actually from GravityDontFlipScreen mod.
It's a vanilla asset though so you may be missing a file from Terraria for some reason, try verifying file integrity on steam.
Ah sorry I thought you mean the rarity part.
For applying it to specific items, you'd use the AppliesToEntity hook. Here's an example.
ShortswordGlobalItem
Override SetDefaults() in GlobalItem, and specify your vanilla itemID and set
Item.rare = ModContent.RarityType<whatever>(); to whatever your rarity is
Here's an example from the TML Discord bot. Basically you'd follow this, except instead of the example showing adding immunity to the player, you'd check the bool in OnHitNPC and then add the fire debuff.
============
Sometimes it isn't possible to create an effect for an accessory without...
That error suggests there are 2 files for projectile 615, did you edit something in the vanilla files and leave it there? There's only supposed to be a png, not a pdn
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.