tModLoader v2023.01
A mod to make and play Terraria mods
Terraria.ModLoader.PrefixLoader Class Reference

Static Public Member Functions

static ModPrefix GetPrefix (int type)
 Returns the ModPrefix associated with specified type If not a ModPrefix, returns null.
 
static List< ModPrefixGetPrefixesInCategory (PrefixCategory category)
 Returns a list of all modded prefixes of a certain category.
 
static void Roll (Item item, ref int prefix, int vanillaWeight, UnifiedRandom unifiedRandom, params PrefixCategory[] categories)
 Performs a mod prefix roll. If the vanillaWeight wins the roll, then prefix is unchanged.
 

Properties

static int PrefixCount = PrefixID.Count [get]