tModLoader [FIXED] How do I change the rarity of Vanilla items?

RBryanYT

Terrarian
I am making a mod that adds a new rarity and I don't know how to change a vanilla item to have the rarity.

Can someone help?
 
Override SetDefaults() in GlobalItem, and specify your vanilla itemID and set
Item.rare = ModContent.RarityType<whatever>(); to whatever your rarity is
 
Override SetDefaults() in GlobalItem, and specify your vanilla itemID and set
Item.rare = ModContent.RarityType<whatever>(); to whatever your rarity is
How do I do that? I looked at ExampleMod, but I couldn't find anything that tells me how to do that.

Also how would I do it for multiple items?
 
You can use one GlobalItem class, just check for multiple itemIDs in AppliesToEntity. If the item is ID1 or if item is ID2, etc etc, return true
 
Back
Top Bottom