|
| PriceInfo (XElement element) |
| Support for the old style of determining item prices when there were individual Price elements for each location type where the item was for sale. More...
|
|
| PriceInfo (int price, bool canBeBought, int minAmount=0, int maxAmount=0, bool canBeSpecial=true, int minLevelDifficulty=0, float buyingPriceMultiplier=1f, bool displayNonEmpty=false, bool requiresUnlock=false, string storeIdentifier=null) |
|
Definition at line 7 of file PriceInfo.cs.
◆ PriceInfo() [1/2]
Barotrauma.PriceInfo.PriceInfo |
( |
XElement |
element | ) |
|
Support for the old style of determining item prices when there were individual Price elements for each location type where the item was for sale.
Definition at line 49 of file PriceInfo.cs.
◆ PriceInfo() [2/2]
Barotrauma.PriceInfo.PriceInfo |
( |
int |
price, |
|
|
bool |
canBeBought, |
|
|
int |
minAmount = 0 , |
|
|
int |
maxAmount = 0 , |
|
|
bool |
canBeSpecial = true , |
|
|
int |
minLevelDifficulty = 0 , |
|
|
float |
buyingPriceMultiplier = 1f , |
|
|
bool |
displayNonEmpty = false , |
|
|
bool |
requiresUnlock = false , |
|
|
string |
storeIdentifier = null |
|
) |
| |
◆ CreatePriceInfos()
static List<PriceInfo> Barotrauma.PriceInfo.CreatePriceInfos |
( |
XElement |
element, |
|
|
out PriceInfo |
defaultPrice |
|
) |
| |
|
static |
◆ DefaultAmount
const int Barotrauma.PriceInfo.DefaultAmount = 5 |
|
static |
◆ BuyingPriceMultiplier
float Barotrauma.PriceInfo.BuyingPriceMultiplier = 1f |
|
get |
The cost of item when sold by the store. Higher modifier means the item costs more to buy from the store.
Definition at line 26 of file PriceInfo.cs.
◆ CanBeBought
bool Barotrauma.PriceInfo.CanBeBought |
|
get |
◆ CanBeSpecial
bool Barotrauma.PriceInfo.CanBeSpecial |
|
get |
Can the item be a Daily Special or a Requested Good
Definition at line 18 of file PriceInfo.cs.
◆ DisplayNonEmpty
bool Barotrauma.PriceInfo.DisplayNonEmpty = false |
|
get |
◆ MaxAvailableAmount
int Barotrauma.PriceInfo.MaxAvailableAmount |
|
get |
◆ MinAvailableAmount
int Barotrauma.PriceInfo.MinAvailableAmount |
|
get |
◆ MinLevelDifficulty
int Barotrauma.PriceInfo.MinLevelDifficulty |
|
get |
The item isn't available in stores unless the level's difficulty is above this value
Definition at line 22 of file PriceInfo.cs.
◆ MinReputation
IReadOnlyDictionary<Identifier, float> Barotrauma.PriceInfo.MinReputation |
|
get |
Minimum reputation needed to buy the item (Key = faction ID, Value = min rep)
Definition at line 42 of file PriceInfo.cs.
◆ Price
int Barotrauma.PriceInfo.Price |
|
get |
◆ RequiresUnlock
bool Barotrauma.PriceInfo.RequiresUnlock |
|
get |
◆ StoreIdentifier