Added system to generate item flea base prices based on handbook value

This commit is contained in:
Chomp
2025-09-16 22:24:35 +01:00
parent 2d172649e1
commit 1ef9ebd88a
3 changed files with 75 additions and 5 deletions
@@ -227,6 +227,33 @@ public record Dynamic
/// </summary>
[JsonPropertyName("itemPriceOverrideRouble")]
public required Dictionary<MongoId, double> ItemPriceOverrideRouble { get; set; }
[JsonPropertyName("generateBaseFleaPrices")]
public GenerateFleaPrices GenerateBaseFleaPrices { get; set; }
}
public record GenerateFleaPrices
{
/// <summary>
/// Should handbook prices be used (true) as a base or the values already in prices.json (false)
/// </summary>
[JsonPropertyName("useHandbookPrice")]
public bool UseHandbookPrice { get; set; }
/// <summary>
/// Multiplier to apply to handbook price
/// </summary>
[JsonPropertyName("priceMultiplier")]
public double PriceMultiplier { get; set; }
/// <summary>
/// Don't allow prices being added that are below sell to trader price. Prevent ability to buy cheap items on flea and sell to traders for easy rep
/// </summary>
[JsonPropertyName("preventPriceBeingBelowTraderBuyPrice")]
public bool PreventPriceBeingBelowTraderBuyPrice { get; set; }
[JsonPropertyName("itemTplMultiplierOverride")]
public Dictionary<MongoId, double> ItemTplMultiplierOverride { get; set; }
}
public record PriceRanges