X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=init.c;h=0e6ae1c0f32ff6f4554fd8c80a604b7a5fe1a474;hb=2deb1b9f7ff8e8e2a1b96fb28344100860b50897;hp=53552f70226e58509fd844bab70dd7b242559037;hpb=978168523abcc3e4f06c23df57dc47541cd995ca;p=open-adventure.git diff --git a/init.c b/init.c index 53552f7..0e6ae1c 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; - 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 */