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

◆ GetStoreValue()

int Terraria.Item.GetStoreValue ( )
inline

Definition at line 51818 of file Item.cs.

51819 {
51820 if (shopCustomPrice.HasValue)
51821 {
51822 return shopCustomPrice.Value;
51823 }
51824 return value;
51825 }
int value
The number of copper coins this item is worth (aka, cost to buy from a merchant). Setting it to 10462...
Definition Item.cs:655
int? shopCustomPrice
If not null, the custom value of the given item when being bought from a shop. Used for assigning a ...
Definition Item.cs:725

References Terraria.Item.shopCustomPrice, and Terraria.Item.value.

Referenced by Terraria.GameContent.UI.CustomCurrencySystem.GetItemExpectedPrice(), and Terraria.Player.GetItemExpectedPrice().

+ Here is the caller graph for this function: