Skip to content

Commit

Permalink
[EC] fix orgasm check
Browse files Browse the repository at this point in the history
  • Loading branch information
Sauceke committed Nov 18, 2023
1 parent a8e01cb commit 979fc3c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/LoveMachine.EC/EmotionCreatorsGame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,12 @@ protected override Animator GetFemaleAnimator(int girlIndex) =>
protected override GameObject GetFemaleRoot(int girlIndex) =>
females[girlIndex].ChaControl.objBodyBone;

protected override string GetPose(int girlIndex) =>
HPlayData.Instance.groupInfos[females[girlIndex].GroupID].nowMotion.ToString();
protected override string GetPose(int girlIndex) => GetMotion(girlIndex).ToString();

protected override bool IsIdle(int girlIndex) =>
HPlayData.Instance.groupInfos[females[girlIndex].GroupID].nowMotion == 0;
protected override bool IsIdle(int girlIndex) => GetMotion(girlIndex) != 1;

protected override bool IsOrgasming(int girlIndex) =>
HPlayData.Instance.groupInfos[females[girlIndex].GroupID].nowMotion > 1;
GetMotion(girlIndex) > 1 && GetMotion(girlIndex) < 6;

protected override IEnumerator UntilReady()
{
Expand All @@ -80,6 +78,9 @@ protected override IEnumerator UntilReady()
.ToArray();
}

private int GetMotion(int girlIndex) =>
HPlayData.Instance.groupInfos[females[girlIndex].GroupID].nowMotion;

private struct Chara
{
public int GroupID { get; set; }
Expand Down

0 comments on commit 979fc3c

Please sign in to comment.