tModLoader  0.12 Alpha
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. More...
 
static List< ModPrefixGetPrefixesInCategory (PrefixCategory category)
 Returns a list of all modded prefixes of a certain category. More...
 
static void Roll (Item item, ref int prefix, int vanillaWeight, params PrefixCategory[] categories)
 Performs a mod prefix roll. If the vanillaWeight wins the roll, then prefix is unchanged. More...
 

Properties

static int PrefixCount = PrefixID.Count [get]
 

Member Function Documentation

◆ GetPrefix()

static ModPrefix Terraria.ModLoader.PrefixLoader.GetPrefix ( int  type)
static

Returns the ModPrefix associated with specified type If not a ModPrefix, returns null.

◆ GetPrefixesInCategory()

static List<ModPrefix> Terraria.ModLoader.PrefixLoader.GetPrefixesInCategory ( PrefixCategory  category)
static

Returns a list of all modded prefixes of a certain category.

◆ Roll()

static void Terraria.ModLoader.PrefixLoader.Roll ( Item  item,
ref int  prefix,
int  vanillaWeight,
params PrefixCategory[]  categories 
)
static

Performs a mod prefix roll. If the vanillaWeight wins the roll, then prefix is unchanged.