public int GetBracket(Entity s) { if (s.BracketSize == 0) { return(0); } var count = PlayState.GetScheduleCount(s.Key); var bracket = count / s.BracketSize; bracket = Math.Min(bracket, s.GoldChanges.Count - 1); return(bracket); }