provide localised cargo name for market sell

This commit is contained in:
Florian Stinglmayr 2022-01-21 20:43:29 +01:00
parent 6dbc466713
commit d82d672df6

View File

@ -17,6 +17,10 @@
/// </summary> /// </summary>
public string Type { get; set; } public string Type { get; set; }
/// <summary> /// <summary>
/// Localised name of the cargo sold, may be null.
/// </summary>
public string TypeLocalised { get; set; }
/// <summary>
/// Price per unit /// Price per unit
/// </summary> /// </summary>
public int SellPrice { get; set; } public int SellPrice { get; set; }
@ -35,6 +39,7 @@
protected override void Initialise() { protected override void Initialise() {
Type = JSON.Value<string>("Type") ?? ""; Type = JSON.Value<string>("Type") ?? "";
TypeLocalised = JSON.Value<string>("Type_Localised") ?? "";
TotalSale = JSON.Value<int?>("TotalSale") ?? 0; TotalSale = JSON.Value<int?>("TotalSale") ?? 0;
Count = JSON.Value<int?>("Count") ?? 0; Count = JSON.Value<int?>("Count") ?? 0;
AvgPricePaid = JSON.Value<int?>("AvgPricePaid") ?? 0; AvgPricePaid = JSON.Value<int?>("AvgPricePaid") ?? 0;