mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-10 03:35:10 +00:00
Merge pull request #668 from RHeavenStudio/cherry-pick-release_1_patches-a071b45d2387a9cf28b2acc1adf99c7ef6c901c7
just two bug fixes
This commit is contained in:
commit
1270005c90
2 changed files with 14 additions and 11 deletions
|
@ -266,7 +266,7 @@ namespace HeavenStudio.Games
|
|||
private void ScheduleStep(double beat)
|
||||
{
|
||||
PlayerActionEvent input = ScheduleInput(beat, 0.5f, InputAction_BasicPress, Success, Miss, Nothing);
|
||||
input.IsHittable = () => man.canStep && man.canStepFromAnim && man.FacingCorrectly();
|
||||
// input.IsHittable = () => man.canStep && man.canStepFromAnim && man.FacingCorrectly();
|
||||
}
|
||||
|
||||
private void RecursiveStepping(double beat)
|
||||
|
|
|
@ -286,16 +286,6 @@ namespace HeavenStudio.Games
|
|||
if (dumplings.Count != 0) InputFunctions(3);
|
||||
}
|
||||
|
||||
// blushes when done eating but not when staring
|
||||
if (needBlush
|
||||
&& !MonkAnim.IsPlayingAnimationNames("Eat", "Stare", "Barely", "Miss")
|
||||
&& !isStaring
|
||||
&& !noBlush)
|
||||
{
|
||||
MonkAnim.DoScaledAnimationAsync("Blush", 0.5f);
|
||||
needBlush = false;
|
||||
}
|
||||
|
||||
// sets hair stuff active when it needs to be
|
||||
if (growLevel > 0) {
|
||||
StacheHolder.SetActive(true);
|
||||
|
@ -346,6 +336,19 @@ namespace HeavenStudio.Games
|
|||
}
|
||||
}
|
||||
|
||||
private void LateUpdate()
|
||||
{
|
||||
// blushes when done eating but not when staring
|
||||
if (needBlush
|
||||
&& !MonkAnim.IsPlayingAnimationNames("Eat", "Stare", "Barely", "Miss")
|
||||
&& !isStaring
|
||||
&& !noBlush)
|
||||
{
|
||||
MonkAnim.DoScaledAnimationAsync("Blush", 0.5f);
|
||||
needBlush = false;
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnBeatPulse(double beat)
|
||||
{
|
||||
if ((MonkAnim.IsAnimationNotPlaying() || MonkAnim.IsPlayingAnimationNames("Bop", "Idle"))
|
||||
|
|
Loading…
Reference in a new issue