mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 09:57:38 +02:00
Improved inputs (A SHIT MORE DYNAMIC BETWEEN GAMES) and a whole lot cleaner code in general
This commit is contained in:
@ -16,6 +16,7 @@ namespace RhythmHeavenMania.Games
|
||||
public bool early;
|
||||
public bool perfect;
|
||||
public bool late;
|
||||
public float createBeat;
|
||||
}
|
||||
|
||||
// hopefully these will fix the lowbpm problem
|
||||
@ -50,5 +51,23 @@ namespace RhythmHeavenMania.Games
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public int MultipleEventsAtOnce()
|
||||
{
|
||||
int sameTime = 0;
|
||||
for (int i = 0; i < EligibleHits.Count; i++)
|
||||
{
|
||||
float createBeat = EligibleHits[i].createBeat;
|
||||
if (EligibleHits.FindAll(c => c.createBeat == createBeat).Count > 0)
|
||||
{
|
||||
sameTime += 1;
|
||||
}
|
||||
}
|
||||
|
||||
if (sameTime == 0 && EligibleHits.Count > 0)
|
||||
sameTime = 1;
|
||||
|
||||
return sameTime;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user