#include "advent.h"
#include "database.h"
+#include "newdb.h"
/*
* Initialisation
for (i=1; i<=LOCSIZ; i++) {
game.abbrev[i]=0;
- if (!(LTEXT[i] == 0 || KEY[i] == 0)) {
+ if (!(long_location_descriptions[i] == 0 || KEY[i] == 0)) {
k=KEY[i];
if(MOD(labs(TRAVEL[k]),1000) == 1)COND[i]=2;
}
* not yet found, so we know when to close the cave. */
game.tally=0;
for (i=MINTRS; i<=MAXTRS; i++) {
- if(PTEXT[i] != 0)
+ if(object_descriptions[i].inventory != 0)
game.prop[i]= -1;
game.tally=game.tally-game.prop[i];
}
#include <stdlib.h>
#include "advent.h"
#include "database.h"
+#include "newdb.h"
/*
* scoring and wrap-up
/* 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;
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);