tModLoader  0.12 Alpha
A mod to make and play Terraria mods
Terraria.ModLoader.StatModifier Struct Reference

Public Member Functions

 StatModifier (float additive, float multiplicative=1)
StatModifier CombineWith (StatModifier m)
override bool Equals (object obj)
override int GetHashCode ()
StatModifier Scale (float scale)

Static Public Member Functions

static implicit operator float (StatModifier m)
static operator int (StatModifier m)
static bool operator!= (StatModifier m1, StatModifier m2)
static StatModifier operator* (float mul, StatModifier m)
static StatModifier operator* (StatModifier m, float mul)
static StatModifier operator+ (float add, StatModifier m)
static StatModifier operator+ (StatModifier m, float add)
static StatModifier operator- (StatModifier m, float sub)
static StatModifier operator/ (StatModifier m, float div)
static bool operator== (StatModifier m1, StatModifier m2)

Static Public Attributes

static readonly StatModifier One = new StatModifier(1f, 1f)


float Additive [get]
float Multiplicative [get]