|
TModLoader v1.4.4.9
TModLoader source code documentation
|
| int Terraria.Item.shopSpecialCurrency = -1 |
The numerical ID of the special currency this item is bought using.
To make an item bought using Defender Medals, set this to F:Terraria.ID.CustomCurrencyID.DefenderMedals.
See ExampleCustomCurrencyIdfor an example of creating and using a custom currency.
Must be used with F:Terraria.Item.shopCustomPrice assigning the price in terms of this custom currency.
Defaults to -1, which means an item is bought using coins.
Definition at line 715 of file Item.cs.
Referenced by Terraria.Player.GetItemExpectedPrice(), Terraria.GameContent.UI.CustomCurrencyManager.GetPrices(), Terraria.Item.ResetStats(), and Terraria.Chest.VanillaSetupShop().