mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 13:57:38 +02:00
Allowed lion count and mii faces to be set before game switches and fixed some bugs from last pr
I went through every single game script to look for bugs in intialization, there shouldn't be anything else that was caused by the pr (there is a bug in Spaceball where a ball cue won't trigger correctly if it's on the same beat as the switch, but i'm not sure how to fix it)
This commit is contained in:
@ -32,6 +32,14 @@ namespace HeavenStudio.Games
|
||||
instance = this;
|
||||
InitLions();
|
||||
}
|
||||
public override void OnGameSwitch(float beat)
|
||||
{
|
||||
Beatmap.Entity changeLion = GameManager.instance.Beatmap.entities.FindLast(c => c.datamodel == "clappyTrio/change lion count" && c.beat <= beat);
|
||||
if(changeLion != null)
|
||||
{
|
||||
EventCaller.instance.CallEvent(changeLion, true);
|
||||
}
|
||||
}
|
||||
|
||||
private void InitLions()
|
||||
{
|
||||
|
Reference in New Issue
Block a user