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

◆ AddToCoinValue()

void Terraria.PopupText.AddToCoinValue ( long addedValue)
inlineprivate

Definition at line 419 of file PopupText.cs.

420 {
421 long val = coinValue + addedValue;
422 coinValue = Math.Min(999999999L, Math.Max(0L, val));
423 }
static byte Min(byte val1, byte val2)
Definition Math.cs:912
static byte Max(byte val1, byte val2)
Definition Math.cs:738

References Terraria.PopupText.coinValue, System.L, System.Math.Max(), and System.Math.Min().

Referenced by Terraria.PopupText.NewText().