|
TModLoader v1.4.4.9
TModLoader source code documentation
|
| int? Terraria.Item.shopCustomPrice |
If not null, the custom value of the given item when being bought from a shop.
Used for assigning a non-default price to an item in shops.
Can be used with F:Terraria.Item.shopSpecialCurrency to assign a price in terms of a custom currency instead of coins.
To get the raw price of an item, use M:Terraria.Item.GetStoreValue.
To get the price of an item after discounts, use M:Terraria.Player.GetItemExpectedPrice(Terraria.Item,System.Int64@,System.Int64@).
Defaults to null.
Definition at line 725 of file Item.cs.
Referenced by Terraria.Item.GetStoreValue(), Terraria.Item.OnPurchase(), Terraria.Item.ResetStats(), and Terraria.Chest.VanillaSetupShop().