Re: changing classes/levels

From: Burkhard Knopf (Knopf@tlaloc.in.tu-clausthal.de)
Date: 10/07/94


>>>>> "Ake" == Ake Jonsson <sv0akejo@ida.his.se> writes:

 Ake> Burkhard Knopf wrote:
 >>>  I tried to change the number of levels the other night and now
 >>> the titles seemed to be screwed up. Guess what happened?
 >>> 
 >>> I didn't find the
 >>>    extern struct title_type titles[4][35];
 >>> lines in several source files for I only looked for the macro LVL_IMPL.
 >>> 
 >>> Guess you better change those numbers to the appropriate macros
 >>> in: act.informative.c, act.wizard.c, interpreter.c, and limits.c
 >>> That'll make it easier.
 >>> 
 >>> 

 Ake> A better way to do this is to add a define in structs.h:

 Ake> #define NUM_CLASSES [n]

 Ake> and then add NUM_CLASSES in every place that use the number of
 Ake> classes. [...]

Hmm, looks like I didn't quite write what I meant.

What I wanted to suppose is that in _every_ file where 34<+1> is meant to
be maxlevel<+1> you'd better use LVL_IMPL instead.
The same goes for NUM_CLASSES (and maybe for some others that I haven't
found yet).

(But don't put LVL_IMPL where 35 stands for - say - SPELL_REMOVE_CURSE ;-) )

PS: I'm always talking of Circle 3.0 beta (pl 4)
    (just in case you find it different in 2.2)

-------------------------------
knopf@tlaloc.in.tu-clausthal.de



This archive was generated by hypermail 2b30 : 12/07/00 PST