X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=score.c;h=cc482ff5d94f4ec0430e433f9754ac7680f8e87d;hp=b1e0d7af13f4e615bdbe4c0e46b6c63afb63bd37;hb=15ff262d17355e14ada3202776646bdfeddda313;hpb=3178f5d9948e6bf1ad74069b9512e7b256b0ff08 diff --git a/score.c b/score.c index b1e0d7a..cc482ff 100644 --- a/score.c +++ b/score.c @@ -1,6 +1,7 @@ #include #include "advent.h" #include "database.h" +#include "newdb.h" /* * scoring and wrap-up @@ -33,7 +34,7 @@ void score(long mode) /* First tally up the treasures. Must be in building and not broken. * Give the poor guy 2 points just for finding each treasure. */ for (i=MINTRS; i<=MAXTRS; i++) { - if(PTEXT[i] != 0) { + if(object_descriptions[i].inventory != 0) { k=12; if(i == CHEST)k=14; if(i > CHEST)k=16; @@ -109,7 +110,7 @@ void score(long mode) RSPEAK(262); for (i=1; i<=CLSSES; i++) { if(CVAL[i] >= score) { - SPEAK(CTEXT[i]); + newspeak(class_messages[i]); i=CVAL[i]+1-score; SETPRM(1,i,i); RSPEAK(263);