diff --git a/src/LoveMachine.OA/OurApartmentGame.cs b/src/LoveMachine.OA/OurApartmentGame.cs index 23c5bee..ef1976a 100644 --- a/src/LoveMachine.OA/OurApartmentGame.cs +++ b/src/LoveMachine.OA/OurApartmentGame.cs @@ -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 isSex; private Animator naomiAnimator; private IEnumerable animationLayers; @@ -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; @@ -75,6 +72,6 @@ protected override IEnumerator UntilReady(object sexSimControl) } isSex = Traverse.Create(sexSimControl).Property("_sexActive"); animationLayers = Enumerable.Range(0, naomiAnimator.layerCount) - .Where(i => layerNames.Contains(naomiAnimator.GetLayerName(i))); + .Where(i => naomiAnimator.GetLayerName(i).ToLower().EndsWith(" sexsim")); } } \ No newline at end of file