From d82d672df6888789167829231d230be33a967722 Mon Sep 17 00:00:00 2001 From: Florian Stinglmayr Date: Fri, 21 Jan 2022 20:43:29 +0100 Subject: [PATCH] provide localised cargo name for market sell --- MarketSellEntry.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/MarketSellEntry.cs b/MarketSellEntry.cs index 8ef41d8..620ae04 100644 --- a/MarketSellEntry.cs +++ b/MarketSellEntry.cs @@ -17,6 +17,10 @@ /// public string Type { get; set; } /// + /// Localised name of the cargo sold, may be null. + /// + public string TypeLocalised { get; set; } + /// /// Price per unit /// public int SellPrice { get; set; } @@ -35,6 +39,7 @@ protected override void Initialise() { Type = JSON.Value("Type") ?? ""; + TypeLocalised = JSON.Value("Type_Localised") ?? ""; TotalSale = JSON.Value("TotalSale") ?? 0; Count = JSON.Value("Count") ?? 0; AvgPricePaid = JSON.Value("AvgPricePaid") ?? 0;