Allow using _parent Ids to set prices for a group of items
Primarily used for fixing the extremely low prices for blacklisted helmets due to handbook prices being out of wack. Ie. Team Wendy EXFIL Ballistic Helmet (Coyote Brown) has a price of 5068, leading flea price to be (5068 * handbookPriceMultiplier) = 15204
This commit is contained in:
parent
1b421da7d9
commit
d44b857b46
@ -25,6 +25,11 @@
|
||||
|
||||
// You can manually add flea prices to items, set a multiplier to their existing price or blacklist them entirely.
|
||||
"customItemConfigs": [
|
||||
{
|
||||
// Headwear parent id, this fixes all blacklisted helmets having extremely low prices on flea
|
||||
"itemId": "5a341c4086f77401f2541505",
|
||||
"priceMultiplier": 12
|
||||
},
|
||||
{
|
||||
// .338 AP round, the best round in the game so it's quite expensive. This also demonstrates the use of the priceMultiplier property. You can lower this if you think it's too expensive.",
|
||||
"itemId": "5fc382a9d724d907e2077dab",
|
||||
|
@ -71,7 +71,7 @@ class TheBlacklistMod implements IPostDBLoadModAsync {
|
||||
const item = itemTable[handbookItem.Id];
|
||||
const originalPrice = prices[item._id];
|
||||
|
||||
const customItemConfig = this.config.customItemConfigs.find(conf => conf.itemId === item._id);
|
||||
const customItemConfig = this.config.customItemConfigs.find(conf => conf.itemId === item._id || conf.itemId == item._parent);
|
||||
|
||||
// We found a custom item config override to use. That's all we care about for this item. Move on to the next item.
|
||||
if (customItemConfig && this.updateItemUsingCustomItemConfig(customItemConfig, item, prices, originalPrice, ragfairConfig)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user