How do I do that? I looked at ExampleMod, but I couldn't find anything that tells me how to do that.Override SetDefaults() in GlobalItem, and specify your vanilla itemID and set
Item.rare = ModContent.RarityType<whatever>(); to whatever your rarity is
That's not what I mean... how do I use a GlobalItem to SetDefaults of multiple vanilla items?
Ok, thanks! I'm assuming the only way to do it for multiple items is using multiple GlobalItems.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
Oh, thanks more!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