diff --git a/MarketPriceLookup/Program.cs b/MarketPriceLookup/Program.cs index bed3075..96210a3 100644 --- a/MarketPriceLookup/Program.cs +++ b/MarketPriceLookup/Program.cs @@ -10,18 +10,18 @@ namespace MarketPriceLookup static void Main(string[] args) { // loop over all items and get a price for each - var priceList = new Dictionary(); + var priceList = new Dictionary(); foreach (var item in ItemTemplateHelper.Items) { var priceData = MarketPricesHelper.GetItemPrice(item.Key); if (priceData != null && priceData.Price != 0) { - priceList.Add(item.Key, priceData); + priceList.Add(item.Key, priceData.Average7DaysPrice); } } // save found prices to json - JsonWriter.WriteJson(priceList, "output", Directory.GetCurrentDirectory(), "itemPriceSnapshot"); + JsonWriter.WriteJson(priceList, "output", Directory.GetCurrentDirectory(), "prices"); } } } diff --git a/README.md b/README.md index c9a34ad..34d0118 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # MarketPriceLookup -Creates a file with prices that can be used to update database\traders\ragfair\itemPriceSnapshot.json +Creates a file with prices that can be used to update assets\database\templates\prices.json place marketPrices.csv with prices in the following folder: And run MarketPriceLookup/program.cs