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

◆ LimitAndRoundMultiplier()

float Terraria.GameContent.ShopHelper.LimitAndRoundMultiplier ( float priceAdjustment)
inlineprivate

Definition at line 196 of file ShopHelper.cs.

197 {
199 priceAdjustment = (float)Math.Round(priceAdjustment * 100f) / 100f;
200 return priceAdjustment;
201 }
static float Clamp(float value, float min, float max)
Definition MathHelper.cs:46
static decimal Round(decimal d)
Definition Math.cs:1096

References Microsoft.Xna.Framework.MathHelper.Clamp(), and System.Math.Round().

Referenced by Terraria.GameContent.ShopHelper.ProcessMood().