Re: SET_BIT based on race

From: malcor (malcor@cyberportal.net)
Date: 07/23/96


Well id did it another way that works perfect, i didn't do a case i did
 set_title(ch, NULL);
  roll_real_abils(ch);
  ch->points.max_hit = 10;
****HERE******
  if (IS_ELF(ch) || IS_TROLL(ch) || IS_HOBBIT(ch) || IS_DWARF(ch))
    SET_BIT(AFF_FLAGS(ch), AFF_INFRAVISION);
****HERE******
  switch (GET_CLASS(ch)) {

  case CLASS_MAGIC_USER:
    break;              

On Mon, 22 Jul 1996, Skylar wrote:

> On Mon, 22 Jul 1996 linebacker@microlink.net wrote:
> 
> > I cannot, for the death of me, get this to work.
> > 
> > I have tried everything I can think of. I was getting
> > parse errors on this:
> > 
> > if(IS_DWARF(ch))
> > SET_BIT(AFF_FLAGS(ch), AFF_INFRAVISION);
> 
> Check your IS_DWARF macro, because you seem to be using SET_BIT correctly.
> Here's a clip from my race.c, init_race_intrinsics() which has been working
> fine for about a year..
> 
> -snip-
>   case RACE_DWARF:
>     if (!IS_AFFECTED(ch, AFF_INFRAVISION))
>       SET_BIT(AFF_FLAGS(ch), AFF_INFRAVISION);
>     break;
> -snip-
> 
> ...same as yours, and it compiles fine.
> 
> 
> 
> -Sky
> 
> ImpMUD    -  circle-coders.intserv.com (207.8.156.36) 9000
> Exile     -  exile-rp.intserv.com  (207.8.156.59)     4000
> Angstland -  angry.infowar.net (207.8.156.??)         4000
> 
> 
> 



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