X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=init.c;h=ee92539859ae3f061c5329c5e380cb0605a0dc7f;hb=8a256a6e374d5a559ce97bf2f1f42cafc12ffe20;hp=aedbeec244aaebb7662a5cc0ede2423498a1a30d;hpb=fd10d380df6804dca3b19ea68dc32df2de6090bd;p=open-adventure.git diff --git a/init.c b/init.c index aedbeec..ee92539 100644 --- a/init.c +++ b/init.c @@ -15,13 +15,13 @@ * 12600 words of message text (LINES, LINSIZ). * 885 travel options (TRAVEL, TRVSIZ). * 330 vocabulary words (KTAB, ATAB, TABSIZ). - * 185 locations (LTEXT, STEXT, KEY, COND, ABB, ATLOC, LOCSND, LOCSIZ). - * 100 objects (PLAC, PLACE, FIXD, FIXED, LINK (TWICE), PTEXT, PROP, + * 185 locations (LTEXT, STEXT, KEY, COND, abbrev, game.atloc, LOCSND, LOCSIZ). + * 100 objects (PLAC, game.place, FIXD, game.fixed, game.link (TWICE), PTEXT, game.prop, * OBJSND, OBJTXT). * 35 "action" verbs (ACTSPK, VRBSIZ). * 277 random messages (RTEXT, RTXSIZ). * 12 different player classifications (CTEXT, CVAL, CLSMAX). - * 20 hints (HINTLC, HINTED, HINTS, HNTSIZ). + * 20 hints (game.hintlc, game.hinted, HINTS, HNTSIZ). * 5 "# of turns" threshholds (TTEXT, TRNVAL, TRNSIZ). * There are also limits which cannot be exceeded due to the structure of * the database. (E.G., The vocabulary uses n/1000 to determine word type, @@ -30,7 +30,11 @@ * 300 locations * 100 objects */ -/* Note: the object count limit has been abstracted as NOBJECTS */ +/* Note: + * - the object count limit has been abstracted as NOBJECTS + * - the random message limit has been abstracted as RTXSIZ + * - maximum locations limit has been abstracted as LOCSIZ + */ /* Description of the database format * @@ -58,9 +62,9 @@ * If M=100 unconditional, but forbidden to dwarves. * If 100 0)THRESH=MOD(TRNVAL[1],100000)+1; - TRNLUZ=0; - LMWARN=false; - IGO=0; - IWEST=0; - KNFLOC=0; - DETAIL=0; - ABBNUM=5; + game.turns=0; + game.trndex=1; + game.thresh= -1; + if(TRNVLS > 0)game.thresh=MOD(TRNVAL[1],100000)+1; + game.trnluz=0; + game.lmwarn=false; + game.iwest=0; + game.knfloc=0; + game.detail=0; + game.abbnum=5; for (I=0; I<=4; I++) { {long x = 2*I+81; if(RTEXT[x] != 0)MAXDIE=I+1;} } /* end loop */ - NUMDIE=0; - HOLDNG=0; - DKILL=0; - FOOBAR=0; - BONUS=0; - CLOCK1=30; - CLOCK2=50; - CONDS=SETBIT(11); - SAVED=0; - CLOSNG=false; - PANIC=false; - CLOSED=false; - CLSHNT=false; - NOVICE=false; - SETUP=1; + game.numdie=0; + game.holdng=0; + game.dkill=0; + game.foobar=0; + game.bonus=0; + game.clock1=30; + game.clock2=50; + game.conds=SETBIT(11); + game.saved=0; + game.closng=false; + game.panic=false; + game.closed=false; + game.clshnt=false; + game.novice=false; + game.setup=1; + game.blklin=true; /* if we can ever think of how, we should save it at this point */