Improve message emission when player wins.
This commit is contained in:
parent
ff2dd31209
commit
9a1b4d021e
4 changed files with 10 additions and 8 deletions
9
score.c
9
score.c
|
@ -126,13 +126,16 @@ void terminate(enum termination mode)
|
|||
for (int i = 1; i <= (int)NCLASSES; i++) {
|
||||
if (classes[i].threshold >= points) {
|
||||
speak(classes[i].message);
|
||||
int nxt = classes[i].threshold + 1 - points;
|
||||
rspeak(NEXT_HIGHER, nxt, nxt);
|
||||
if (i < (int)NCLASSES) {
|
||||
int nxt = classes[i].threshold + 1 - points;
|
||||
rspeak(NEXT_HIGHER, nxt, nxt);
|
||||
} else {
|
||||
rspeak(NO_HIGHER);
|
||||
}
|
||||
exit(EXIT_SUCCESS);
|
||||
}
|
||||
}
|
||||
rspeak(OFF_SCALE);
|
||||
rspeak(NO_HIGHER);
|
||||
exit(EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
|
|
|
@ -23,4 +23,5 @@ You scored 9031 out of a possible 430, using 0 turns.
|
|||
It may interest you to know that the Dungeon-Master himself has, to
|
||||
my knowledge, never achieved this threshold in fewer than 330 turns.'
|
||||
|
||||
To achieve the next higher rating, you need 969 more points.
|
||||
To achieve the next higher rating would be a neat trick!
|
||||
Congratulations!!
|
||||
|
|
|
@ -19,6 +19,3 @@ Now let's see you do it without suspending in mid-Adventure.
|
|||
You scored 10031 out of a possible 430, using 0 turns.
|
||||
|
||||
You just went off my scale!!
|
||||
|
||||
To achieve the next higher rating would be a neat trick!
|
||||
Congratulations!!
|
||||
|
|
|
@ -2104,4 +2104,5 @@ You scored 430 out of a possible 430, using 349 turns.
|
|||
It may interest you to know that the Dungeon-Master himself has, to
|
||||
my knowledge, never achieved this threshold in fewer than 330 turns.'
|
||||
|
||||
To achieve the next higher rating, you need 9570 more points.
|
||||
To achieve the next higher rating would be a neat trick!
|
||||
Congratulations!!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue