Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 9 additions & 13 deletions RespecWrath/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -914,24 +914,20 @@ public static void PatchLibrary()
{
Main.logger.Log("Library data gathering initiated");
DeityBackground.DeityFeatures = DeityBackground.DeitySelect?.AllFeatures.Select(a => a).ToArray();
var tempbackgroundlist = new List<BlueprintFeature>();
tempbackgroundlist.Add(DeityBackground.BackgroundSelect);
foreach (var background in DeityBackground.BackgroundSelect?.AllFeatures)
List<BlueprintFeature> tempbackgroundlist = [DeityBackground.BackgroundSelect];
foreach (var background in DeityBackground.BackgroundSelect?.AllFeatures.NotNull() ?? [])
{
if (background != null)
tempbackgroundlist.Add(background);
if (background is BlueprintFeatureSelection background1)
{
tempbackgroundlist.Add(background);
if (background.GetType() == typeof(BlueprintFeatureSelection))
foreach (var selection in background1?.AllFeatures.NotNull() ?? [])
{
foreach (var selection in ((BlueprintFeatureSelection)background)?.AllFeatures)
tempbackgroundlist.Add(selection);
if (selection is BlueprintFeatureSelection selection1)
{
tempbackgroundlist.Add(selection);
if (selection.GetType() == typeof(BlueprintFeatureSelection))
foreach (var selection2 in selection1?.AllFeatures.NotNull() ?? [])
{
foreach (var selection2 in ((BlueprintFeatureSelection)selection)?.AllFeatures)
{
tempbackgroundlist.Add(selection2);
}
}
}
}
Expand Down Expand Up @@ -1049,4 +1045,4 @@ public enum ExtraPointsType
P25
}
}
}
}