Skip to content

Commit

Permalink
[OA] Support all current (and hopefully future) H scenes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sauceke committed Jun 24, 2024
1 parent b7ffd4a commit b44863c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/LoveMachine.OA/OurApartmentGame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ namespace LoveMachine.OA;

internal sealed class OurApartmentGame : GameAdapter
{
private static readonly string[] layerNames =
{ "Base SexSim", "From Behind SexSim", "Couch Missionary SexSim" };

private Traverse<bool> isSex;
private Animator naomiAnimator;
private IEnumerable<int> animationLayers;
Expand Down Expand Up @@ -48,7 +45,7 @@ internal sealed class OurApartmentGame : GameAdapter

protected override MethodInfo[] EndHMethods => new[]
{
AccessTools.Method("Momoirosoft.Managers.SexSimControl, Assembly-CSharp:RunSexConclusion")
AccessTools.Method("Momoirosoft.Managers.SexSimControl, Assembly-CSharp:EndStreams")
};

protected override Animator GetFemaleAnimator(int girlIndex) => naomiAnimator;
Expand All @@ -75,6 +72,6 @@ protected override IEnumerator UntilReady(object sexSimControl)
}
isSex = Traverse.Create(sexSimControl).Property<bool>("_sexActive");
animationLayers = Enumerable.Range(0, naomiAnimator.layerCount)
.Where(i => layerNames.Contains(naomiAnimator.GetLayerName(i)));
.Where(i => naomiAnimator.GetLayerName(i).ToLower().EndsWith(" sexsim"));
}
}

0 comments on commit b44863c

Please sign in to comment.