Made the announcer slightly nicer to terrible players.

This commit is contained in:
allenseitz
2015-07-07 01:12:59 +00:00
parent c3390e0c23
commit 8867f298f8
4 changed files with 11 additions and 5 deletions

Binary file not shown.

View File

@@ -298,8 +298,9 @@ public:
#define GUY_RESULT_S pickRandomInt(2, 100, 101)
#define GUY_RESULT_B pickRandomInt(2, 97, 104)
#define GUY_RESULT_C pickRandomInt(2, 103, 108)
#define GUY_RESULT_D pickRandomInt(2, 91, 95)
#define GUY_RESULT_C pickRandomInt(2, 123, 133)
#define GUY_RESULT_D pickRandomInt(2, 88, 108)
#define GUY_RESULT_E pickRandomInt(2, 91, 95)
#define GUY_EARN_EXTRA pickRandomInt(2, 115, 85) // one more time, made just for you,
#define GUY_EARN_SPECIAL_EXTRA pickRandomInt(2, 82, 81) // wow youre a real dancer, can you do this,

View File

@@ -183,6 +183,7 @@ void firstGameplayLoop()
announcerMinusPoints = 0;
announcerLastCheckTotal = 0;
announcerTargetSpeak = 0;
// load certain sound effects only during the first run of the game
if ( !gameplayInitialized )
@@ -336,7 +337,7 @@ void mainGameplayLoop(UTIME dt)
// index 0 and 2 are "long", index 1 and 3 are "short"
static int GUY_PLAYING_PERFECT[4] = { 107, 132, 99, 140 };
static int GUY_PLAYING_GREAT[4] = { 65, 117, 98, 119 };
static int GUY_PLAYING_UNWELL[4] = { 102, 144, 111, 146 };
static int GUY_PLAYING_UNWELL[4] = { 116, 144, 111, 146 };
static int GUY_PLAYING_GIVEUP[4] = { 93, 127, 94, 128 };
bool talked = false;

View File

@@ -132,7 +132,7 @@ void mainResultsLoop(UTIME dt)
averageScore /= numStages;
}
if ( averageScore >= 950000 )
if ( averageScore >= 900000 )
{
em.announcerQuip(GUY_RESULT_S);
}
@@ -144,10 +144,14 @@ void mainResultsLoop(UTIME dt)
{
em.announcerQuip(GUY_RESULT_C);
}
else if ( averageScore > 0 )
else if ( averageScore > 400000 )
{
em.announcerQuip(GUY_RESULT_D);
}
else
{
em.announcerQuip(GUY_RESULT_E);
}
}
if ( !doneIntroAnim && resultFadeTimer < (INTRO_ANIM_LENGTH/2) )
{