TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ GetPrefixedRarity()

virtual int Terraria.ModLoader.ModRarity.GetPrefixedRarity ( int offset,
float valueMult )
inlinevirtual

Allows you to modify which rarities will come before and after this when a modifier is applied (since modifiers can affect rarity)

Parameters
offsetThe amount by which the rarity would be offset in vanilla. -2 is the most it can go down, and +2 is the most it can go up by.
valueMultThe combined stat and prefix value scale. Can be used to implement super high or low value rarity adjustments outside normal vanilla ranges
Returns
The adjusted rarity type. Return
Type
for no change.

Definition at line 33 of file ModRarity.cs.

34 {
35 return Type;
36 }

References Terraria.ModLoader.ModRarity.Type.