Re: [Code][Newbie]

From: Brian Guilbault (
Date: 01/06/97

On Sun, 5 Jan 1997, Daniel Koepke wrote:

> On Sun, 5 Jan 1997, [ISO-8859-1] Elric of Melnibonč wrote:
> > would making the next line in the case statment read
> >     
> >             af[0].bitvector = AFF_INFRAVISION;
> > 
> > cause the character to have infravision from the get go?
> No.  There is no 'af' array in roll_real_abils().  That is from
> magic.c, no doubt.  But the above does nothing by it's own.  I
> might suggest setting the AFF_ flag...

The problem with this one is that if a player had racial infravision and 
they get infra cast on them, whn it wears off, they lose the flag. I made 
a new AFF flag called RACE_INFRA and set that in do_start. I updated the 
CAN_SEE macros in utils.h to account for the new flag. It took a bit more 
work, but I *think* it's foolproof.


Brian Guilbault - GMI Engineering Institute
QuarantineMUD: Telnet to 4000

| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   |

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