From ae2c4f779c01a4c45c2b9a308778a4bc228a0abb Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 13 Feb 2003 21:58:33 +0000 Subject: [PATCH] make toasty rare (having it come up once every few days is amusing; having it come up twice in one song is annoying) (easter eggs should be rare anyway, or they become distracting ...) --- stepmania/src/Combo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/Combo.cpp b/stepmania/src/Combo.cpp index 07e7d53657..e264e81cda 100644 --- a/stepmania/src/Combo.cpp +++ b/stepmania/src/Combo.cpp @@ -64,7 +64,7 @@ void Combo::UpdateScore( TapNoteScore score, int iNumNotesInThisRow ) case TNS_PERFECT: m_iCurComboOfPerfects += iNumNotesInThisRow; - if( (m_iCurComboOfPerfects>=150) && (m_iCurComboOfPerfects%150)==0 && !GAMESTATE->m_bDemonstration ) + if( rand() < 0.1f && m_iCurComboOfPerfects>=150 && (m_iCurComboOfPerfects%150)==0 && !GAMESTATE->m_bDemonstration ) SCREENMAN->SendMessageToTopScreen( SM_BeginToasty, 0 ); break; default: