Skip to content

Commit

Permalink
fix Necklace of Flowing Life crash
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewSav committed Jun 3, 2024
1 parent 1f78ed9 commit 6a2b904
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## v0.0.17 (4 June 2024)
- Fix Necklese of Flowing Life crash

## v0.0.16 (3 June 2024)
- Added Huntress', Nimue's, Dran's and Root Walker's dreams consumables to craftable items

Expand Down
5 changes: 1 addition & 4 deletions CustomScripts.Items.cs
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,7 @@ private static bool Anguish(LootItemContext lic)
.SingleOrDefault(x => x.EventDropReference == "Quest_Injectable_BurningCity_DLC");

// If we have it, add Anguish to it
if (etherealManor != null)
{
etherealManor.Items.Add(lic.LootItem);
}
etherealManor?.Items.Add(lic.LootItem);

// remove Anguish form the Progression Loot Group
return false;
Expand Down
2 changes: 1 addition & 1 deletion Model/LootItemContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public Actor GetActor(string name)
{
Navigator navigator = World.ParentCharacter.WorldNavigator!;
UObject main = navigator.GetObjects("PersistenceContainer").Single(x => x.KeySelector == "/Game/Maps/Main.Main:PersistentLevel");
string selector = World.IsCampaign ? "Quest_Campaign_Main_C" : "Quest_AdventureMode_Nerud_C";
string selector = World.IsCampaign ? "Quest_Campaign_Main_C" : "Quest_AdventureMode_Jungle_C";
UObject meta = navigator.GetActor(selector, main)!.Archive.Objects[0];
int? id = meta.Properties!["ID"].Get<int>();
UObject? obj = navigator.GetObjects("PersistenceContainer").SingleOrDefault(x => x.KeySelector == $"/Game/Quest_{id}_Container.Quest_Container:PersistentLevel");
Expand Down
2 changes: 1 addition & 1 deletion lib.remnant2.analyzer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="lib.remnant2.saves" Version="0.0.11" />
<PackageReference Include="lib.remnant2.saves" Version="0.0.12" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="Serilog" Version="3.1.1" />
<PackageReference Include="SerilogTimings" Version="3.1.0" />
Expand Down

0 comments on commit 6a2b904

Please sign in to comment.