formatting

This commit is contained in:
Chomp 2021-08-25 19:06:24 +01:00
parent ac5a0e3f17
commit ea2f5ce3a8

View File

@ -28,7 +28,10 @@ namespace PMCGenerator
var flatModList = GetModsFromRawFile(parsedPresets); var flatModList = GetModsFromRawFile(parsedPresets);
// Add weapon mods to output // Add weapon mods to output
var output = new { FirstPrimaryWeapon = new List<string>(), Holster = new List<string>(), mods = new Dictionary<string, Dictionary<string, List<string>>>() }; var output = new {
FirstPrimaryWeapon = new List<string>(),
Holster = new List<string>(),
mods = new Dictionary<string, Dictionary<string, List<string>>>() };
output.FirstPrimaryWeapon.AddRange(flatPrimaryWeaponsList.Select(x => x.TemplateId).Distinct()); output.FirstPrimaryWeapon.AddRange(flatPrimaryWeaponsList.Select(x => x.TemplateId).Distinct());
output.Holster.AddRange(flatSecondaryWeaponsList.Select(x => x.TemplateId).Distinct()); output.Holster.AddRange(flatSecondaryWeaponsList.Select(x => x.TemplateId).Distinct());