Skip to content

Commit

Permalink
Bump version and fix shade marker below Hornet.
Browse files Browse the repository at this point in the history
  • Loading branch information
homothetyhk committed Jun 19, 2022
1 parent 7627120 commit 54620c9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ItemChanger/ItemChanger.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<TargetFramework>net472</TargetFramework>
<RootNamespace>ItemChanger</RootNamespace>
<AssemblyTitle>ItemChanger</AssemblyTitle>
<AssemblyVersion>2.0.5</AssemblyVersion>
<FileVersion>2.0.5</FileVersion>
<AssemblyVersion>2.0.6</AssemblyVersion>
<FileVersion>2.0.6</FileVersion>
<Deterministic>true</Deterministic>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<LangVersion>latest</LangVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ protected override void OnLoad()
Events.AddFsmEdit(sceneName, new("Dream Scene Activate", "Control"), DestroyDreamScene);
Events.AddFsmEdit(sceneName, new("Hornet Infected Knight Encounter", "Encounter"), PreventHornetSaver);
Events.AddFsmEdit(sceneName, new("Hornet Boss 1", "Control"), PreventHornetSaverOnRefight);
Events.AddFsmEdit(sceneName, new("Hollow_Shade Marker (1)", "FSM"), ChangeShadeMarkerTest);
}

protected override void OnUnload()
{
base.OnUnload();
Expand All @@ -31,6 +33,7 @@ protected override void OnUnload()
Events.RemoveFsmEdit(sceneName, new("Dream Scene Activate", "Control"), DestroyDreamScene);
Events.RemoveFsmEdit(sceneName, new("Hornet Infected Knight Encounter", "Encounter"), PreventHornetSaver);
Events.RemoveFsmEdit(sceneName, new("Hornet Boss 1", "Control"), PreventHornetSaverOnRefight);
Events.RemoveFsmEdit(sceneName, new("Hollow_Shade Marker (1)", "FSM"), ChangeShadeMarkerTest);
}

private void EditCloakCorpse(PlayMakerFSM fsm)
Expand Down Expand Up @@ -68,5 +71,10 @@ private void PreventHornetSaverOnRefight(PlayMakerFSM fsm)
{
fsm.GetState("Refight Wake").RemoveFirstActionOfType<ActivateAllChildren>();
}

private void ChangeShadeMarkerTest(PlayMakerFSM fsm)
{
fsm.FsmVariables.FindFsmString("playerData bool").Value = nameof(PlayerData.hornet1Defeated);
}
}
}

0 comments on commit 54620c9

Please sign in to comment.