X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=init.c;h=87e8da2218c0489bcab1509338a316d79b7d8d63;hb=2d95c3f4f5cf2d92149be9c4b43bbcc6d36c2de7;hp=4bb7cc2b5a19f6c7d569503c418f33b2dda208ac;hpb=91ad0185ffcbda83f115433c630b40e4ea6f7a41;p=open-adventure.git diff --git a/init.c b/init.c index 4bb7cc2..87e8da2 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, @@ -32,7 +32,8 @@ /* Note: * - the object count limit has been abstracted as NOBJECTS - * - the random message limit has been abstracted as RTXSIZE + * - the random message limit has been abstracted as RTXSIZ + * - maximum locations limit has been abstracted as LOCSIZ */ /* Description of the database format @@ -61,9 +62,9 @@ * If M=100 unconditional, but forbidden to dwarves. * If 100 0)THRESH=MOD(TRNVAL[1],100000)+1; - TRNLUZ=0; + 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; IGO=0; game.iwest=0; @@ -378,7 +379,7 @@ L1106: /*etc*/ ; for (I=0; I<=4; I++) { {long x = 2*I+81; if(RTEXT[x] != 0)MAXDIE=I+1;} } /* end loop */ - NUMDIE=0; + game.numdie=0; game.holdng=0; game.dkill=0; game.foobar=0; @@ -386,13 +387,13 @@ L1106: /*etc*/ ; game.clock1=30; game.clock2=50; game.conds=SETBIT(11); - SAVED=0; + game.saved=0; game.closng=false; - PANIC=false; + game.panic=false; game.closed=false; - CLSHNT=false; - NOVICE=false; - SETUP=1; + 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 */