Added Change Lion Count event to Clappy Trio

1-8 lions thats crazy
This commit is contained in:
Carson Kompon 2022-02-28 20:11:01 -05:00
parent f7b0eba8c0
commit ba8559c3cd
2 changed files with 17 additions and 0 deletions

View file

@ -150,6 +150,19 @@ namespace RhythmHeavenMania.Games.ClappyTrio
PlayAnimationAll("Bop"); PlayAnimationAll("Bop");
} }
public void ChangeLionCount(int lions)
{
for(int i=1; i<lionCount; i++)
{
Destroy(Lion[i]);
}
Lion.RemoveRange(1, lionCount - 1);
lionCount = lions;
SetFace(0, 0);
Start();
PlayAnimationAll("Idle");
}
private void PlayAnimationAll(string anim) private void PlayAnimationAll(string anim)
{ {
for (int i = 0; i < Lion.Count; i++) for (int i = 0; i < Lion.Count; i++)

View file

@ -211,6 +211,10 @@ namespace RhythmHeavenMania
new GameAction("bop", delegate { ClappyTrio.instance.Bop(eventCaller.currentEntity.beat); } ), new GameAction("bop", delegate { ClappyTrio.instance.Bop(eventCaller.currentEntity.beat); } ),
new GameAction("prepare", delegate { ClappyTrio.instance.Prepare(0); } ), new GameAction("prepare", delegate { ClappyTrio.instance.Prepare(0); } ),
new GameAction("prepare_alt", delegate { ClappyTrio.instance.Prepare(3); } ), new GameAction("prepare_alt", delegate { ClappyTrio.instance.Prepare(3); } ),
new GameAction("change lion count", delegate { ClappyTrio.instance.ChangeLionCount((int)eventCaller.currentEntity.valA); }, 0.5f, false, new List<Param>()
{
new Param("valA", new EntityTypes.Integer(1, 8, 3), "Lion Count")
}),
}), }),
new Minigame("spaceball", "Spaceball", "00A518", false, false, new List<GameAction>() new Minigame("spaceball", "Spaceball", "00A518", false, false, new List<GameAction>()
{ {