Do not apply ItemPriceMultiplier values to weapon price
This commit is contained in:
@@ -779,11 +779,13 @@ public class RagfairController(
|
||||
{
|
||||
averageOfferPriceSingleItem = ragfairPriceService.GetPresetPriceByChildren(offer.Items);
|
||||
}
|
||||
|
||||
// Check for and apply item price modifer if it exists in config
|
||||
if (RagfairConfig.Dynamic.ItemPriceMultiplier.TryGetValue(offerRootItem.Template, out var itemPriceModifer))
|
||||
else
|
||||
{
|
||||
averageOfferPriceSingleItem *= itemPriceModifer;
|
||||
// Check for and apply item price modifer if it exists in config
|
||||
if (RagfairConfig.Dynamic.ItemPriceMultiplier.TryGetValue(offerRootItem.Template, out var itemPriceModifer))
|
||||
{
|
||||
averageOfferPriceSingleItem *= itemPriceModifer;
|
||||
}
|
||||
}
|
||||
|
||||
// Multiply single item price by quality
|
||||
|
||||
@@ -531,7 +531,7 @@ public class RagfairPriceService(
|
||||
/// </summary>
|
||||
/// <param name="weaponWithChildren">weapon plus mods</param>
|
||||
/// <returns>price of weapon in roubles</returns>
|
||||
protected double GetPresetPriceByChildren(IEnumerable<Item> weaponWithChildren)
|
||||
public double GetPresetPriceByChildren(IEnumerable<Item> weaponWithChildren)
|
||||
{
|
||||
var priceTotal = 0d;
|
||||
foreach (var item in weaponWithChildren)
|
||||
|
||||
Reference in New Issue
Block a user