Skip to content

Commit

Permalink
switch from no longer existing eddb to edsm and spansh data sources
Browse files Browse the repository at this point in the history
removed mining related prices
  • Loading branch information
mhwlng committed Apr 10, 2023
1 parent 567554c commit 983cd75
Show file tree
Hide file tree
Showing 28 changed files with 807 additions and 956 deletions.
2 changes: 1 addition & 1 deletion EDEngineer/EDEngineer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.13.0.2\lib\net45\Newtonsoft.Json.dll</HintPath>
<HintPath>..\packages\Newtonsoft.Json.13.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand Down
62 changes: 60 additions & 2 deletions EDEngineer/EDEngineer/Resources/Data/blueprints.json
Original file line number Diff line number Diff line change
Expand Up @@ -6423,6 +6423,38 @@
"Grade": 5,
"CoriolisGuid": "d9306721-43a4-45cd-b225-ac9174da4d13"
},
{
"Type": "Heat Sink Launcher",
"Name": "Modified Heat Sink Launcher",
"Engineers": [
"@Technology"
],
"Ingredients": [
{
"Name": "Mechanical Scrap",
"Size": 8
},
{
"Name": "Niobium",
"Size": 6
},
{
"Name": "Vanadium",
"Size": 6
},
{
"Name": "Mechanical Components",
"Size": 4
}
],
"Effects": [
{
"Effect": "+100%",
"Property": "Capacity",
"IsGood": true
}
]
},
{
"Type": "Heat Sink Launcher",
"Name": "Reinforced",
Expand Down Expand Up @@ -18233,7 +18265,8 @@
"IsGood": false
}
],
"Grade": 5
"Grade": 5,
"CoriolisGuid": "dd804ba4-5186-44b5-a096-6490b5806165"
},
{
"Type": "Fuel Transfer Limpet Controller",
Expand Down Expand Up @@ -34289,6 +34322,31 @@
}
]
},
{
"Type": "Human",
"Name": "Sirius Modified Heat Sink Launcher",
"Engineers": [
"@Technology"
],
"Ingredients": [
{
"Name": "Mechanical Components",
"Size": 5
},
{
"Name": "Mechanical Scrap",
"Size": 8
},
{
"Name": "Niobium",
"Size": 6
},
{
"Name": "Vanadium",
"Size": 6
}
]
},
{
"Type": "Guardian",
"Name": "Guardian Gauss Cannon (Fixed, Medium)",
Expand Down Expand Up @@ -41201,7 +41259,7 @@
},
{
"Name": "Circuit Board",
"Size": 3
"Size": 5
}
],
"Effects": []
Expand Down
14 changes: 13 additions & 1 deletion EDEngineer/EDEngineer/Resources/Data/entryData.json
Original file line number Diff line number Diff line change
Expand Up @@ -1196,7 +1196,8 @@
"OriginDetails": [
"Surface prospecting"
],
"Group": "Category3"
"Group": "Category3",
"MaximumCapacity": 150
},
{
"Name": "Salvaged Alloys",
Expand Down Expand Up @@ -1795,6 +1796,17 @@
],
"Group": "ThargoidShip"
},
{
"Name": "Thargoid Interdiction Telemetry",
"Rarity": "VeryRare",
"FormattedName": "tg_interdictiondata",
"Kind": "Data",
"OriginDetails": [
"Ship scanning (Thargoid interceptors)"
],
"Group": "ThargoidShip",
"MaximumCapacity": 200
},
{
"Name": "Guardian Weapon Blueprint Segment",
"Rarity": "VeryRare",
Expand Down
2 changes: 1 addition & 1 deletion EDEngineer/packages.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Newtonsoft.Json" version="13.0.2" targetFramework="net48" />
<package id="Newtonsoft.Json" version="13.0.3" targetFramework="net48" />
</packages>
12 changes: 1 addition & 11 deletions Elite/CnbSystems.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@ public class CnbSystemData
[DefaultValue(0)]
public long SystemPopulation { get; set; }

[JsonProperty("powerplaystate")]
public string PowerplayState { get; set; }

[JsonProperty("powers")]
public string Powers { get; set; }

[JsonProperty("allegiance")]
public string Allegiance { get; set; }

Expand All @@ -55,11 +49,7 @@ public class CnbSystemData

[JsonProperty("government")]
public string Government { get; set; }

[JsonProperty("controlling_minor_faction")]
public string ControllingMinorFaction { get; set; }



[JsonIgnore]
public double Distance { get; set; }

Expand Down
14 changes: 7 additions & 7 deletions Elite/Data.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ public class Data
};


public static Dictionary<MiningStations.MaterialTypes, List<MiningStations.MiningStationData>> NearbyMiningStationsList = new Dictionary<MiningStations.MaterialTypes, List<MiningStations.MiningStationData>>
/* public static Dictionary<MiningStations.MaterialTypes, List<MiningStations.MiningStationData>> NearbyMiningStationsList = new Dictionary<MiningStations.MaterialTypes, List<MiningStations.MiningStationData>>
{
{MiningStations.MaterialTypes.Painite, new List<MiningStations.MiningStationData>()},
{MiningStations.MaterialTypes.LTD, new List<MiningStations.MiningStationData>()},
{MiningStations.MaterialTypes.Platinum, new List<MiningStations.MiningStationData>()},
{MiningStations.MaterialTypes.TritiumBuy, new List<MiningStations.MiningStationData>()},
{MiningStations.MaterialTypes.TritiumSell, new List<MiningStations.MiningStationData>()}
};
};*/

public static Dictionary<Station.PoiTypes, List<StationData>> NearbyStationList = new Dictionary<Station.PoiTypes, List<StationData>>
{
Expand Down Expand Up @@ -227,11 +227,11 @@ public static void HandleJson()
NearbyHotspotSystemsList[HotspotSystems.MaterialTypes.LTD] = HotspotSystems.GetNearestHotspotSystems(LocationData.StarPos, HotspotSystems.FullHotspotSystemsList[HotspotSystems.MaterialTypes.LTD]);
NearbyHotspotSystemsList[HotspotSystems.MaterialTypes.Platinum] = HotspotSystems.GetNearestHotspotSystems(LocationData.StarPos, HotspotSystems.FullHotspotSystemsList[HotspotSystems.MaterialTypes.Platinum]);

NearbyMiningStationsList[MiningStations.MaterialTypes.Painite] = MiningStations.GetNearestMiningStations(LocationData.StarPos, MiningStations.FullMiningStationsList[MiningStations.MaterialTypes.Painite], true);
NearbyMiningStationsList[MiningStations.MaterialTypes.LTD] = MiningStations.GetNearestMiningStations(LocationData.StarPos, MiningStations.FullMiningStationsList[MiningStations.MaterialTypes.LTD], true);
NearbyMiningStationsList[MiningStations.MaterialTypes.Platinum] = MiningStations.GetNearestMiningStations(LocationData.StarPos, MiningStations.FullMiningStationsList[MiningStations.MaterialTypes.Platinum], true);
NearbyMiningStationsList[MiningStations.MaterialTypes.TritiumBuy] = MiningStations.GetNearestMiningStations(LocationData.StarPos, MiningStations.FullMiningStationsList[MiningStations.MaterialTypes.TritiumBuy], false);
NearbyMiningStationsList[MiningStations.MaterialTypes.TritiumSell] = MiningStations.GetNearestMiningStations(LocationData.StarPos, MiningStations.FullMiningStationsList[MiningStations.MaterialTypes.TritiumSell], true);
//NearbyMiningStationsList[MiningStations.MaterialTypes.Painite] = MiningStations.GetNearestMiningStations(LocationData.StarPos, MiningStations.FullMiningStationsList[MiningStations.MaterialTypes.Painite], true);
//NearbyMiningStationsList[MiningStations.MaterialTypes.LTD] = MiningStations.GetNearestMiningStations(LocationData.StarPos, MiningStations.FullMiningStationsList[MiningStations.MaterialTypes.LTD], true);
//NearbyMiningStationsList[MiningStations.MaterialTypes.Platinum] = MiningStations.GetNearestMiningStations(LocationData.StarPos, MiningStations.FullMiningStationsList[MiningStations.MaterialTypes.Platinum], true);
//NearbyMiningStationsList[MiningStations.MaterialTypes.TritiumBuy] = MiningStations.GetNearestMiningStations(LocationData.StarPos, MiningStations.FullMiningStationsList[MiningStations.MaterialTypes.TritiumBuy], false);
//NearbyMiningStationsList[MiningStations.MaterialTypes.TritiumSell] = MiningStations.GetNearestMiningStations(LocationData.StarPos, MiningStations.FullMiningStationsList[MiningStations.MaterialTypes.TritiumSell], true);

EngineersList = Station.UpdateEngineersLocation(LocationData.StarPos, EngineersList);

Expand Down
4 changes: 2 additions & 2 deletions Elite/Elite.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
<HintPath>..\packages\NAudio.WinMM.2.1.0\lib\netstandard2.0\NAudio.WinMM.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.13.0.2\lib\net45\Newtonsoft.Json.dll</HintPath>
<HintPath>..\packages\Newtonsoft.Json.13.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
Expand Down Expand Up @@ -483,7 +483,7 @@
<Content Include="Templates\images\powers\Archon Delaine.png">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="Templates\images\powers\Arissa Lavigny-Duval.png">
<Content Include="Templates\images\powers\A. Lavigny-Duval.png">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="Templates\images\powers\Denton Patreus.png">
Expand Down
6 changes: 3 additions & 3 deletions Elite/FipPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1997,7 +1997,7 @@ public void RefreshDevicePage(bool mustRender = true)
CheckCardSelectionLimits(2);
break;
case LcdTab.Mining:
CheckCardSelectionLimits(7);
CheckCardSelectionLimits(2); //''7);
break;
case LcdTab.HWInfo:
CheckCardSelectionLimits(1);
Expand Down Expand Up @@ -2603,9 +2603,9 @@ public void RefreshDevicePage(bool mustRender = true)
CurrentPage = _currentPage,
CurrentCard = CurrentCard[(int)CurrentTab],

NearbyHotspotSystemsList = Data.NearbyHotspotSystemsList,
NearbyHotspotSystemsList = Data.NearbyHotspotSystemsList//,

NearbyMiningStationsList = Data.NearbyMiningStationsList
//NearbyMiningStationsList = Data.NearbyMiningStationsList

});
}
Expand Down
Loading

0 comments on commit 983cd75

Please sign in to comment.