projects
/
open-adventure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Section 10 (class thresholds) is now parsed entirely from YAML.
[open-adventure.git]
/
score.c
diff --git
a/score.c
b/score.c
index 3091413e36fde70bd0194f6b8b6e20fecf4d1c0a..f3fc80749922c2ff9febce40bd3ec8ef33a03870 100644
(file)
--- a/
score.c
+++ b/
score.c
@@
-120,9
+120,9
@@
void terminate(enum termination mode)
SETPRM(3, game.turns, game.turns);
RSPEAK(TOTAL_SCORE);
for (long i = 1; i <= (long)CLSSES; i++) {
SETPRM(3, game.turns, game.turns);
RSPEAK(TOTAL_SCORE);
for (long i = 1; i <= (long)CLSSES; i++) {
- if (
CVAL[i]
>= points) {
- speak(class
_messages[i]
);
- i =
CVAL[i]
+ 1 - points;
+ if (
classes[i].threshold
>= points) {
+ speak(class
es[i].message
);
+ i =
classes[i].threshold
+ 1 - points;
SETPRM(1, i, i);
RSPEAK(NEXT_HIGHER);
exit(0);
SETPRM(1, i, i);
RSPEAK(NEXT_HIGHER);
exit(0);