Re: [Code][Newbie]

From: Elric of Melnibonč (elric@melnibone.org)
Date: 01/06/97


so basicly what you are saying is that the easiest way is to change the
following in utils.h

#define CAN_SEE_IN_DARK(ch) \
   (AFF_FLAGGED(ch, AFF_INFRAVISION) || PRF_FLAGGED(ch, PRF_HOLYLIGHT))

to 

#define CAN_SEE_IN_DARK(ch) \
   (AFF_FLAGGED(ch, AFF_INFRAVISION) || PRF_FLAGGED(ch, PRF_HOLYLIGHT) ||
IS_ELF(ch))

or is my ignorance just hanging out?


				Elric

----------
> From: Daniel Koepke <dkoepke@california.com>
> To: Brian Guilbault <guil9964@nova.gmi.edu>
> Cc: CircleMUD <circle@cspo.queensu.ca>
> Subject: Re: [Code][Newbie]
> Date: Monday, January 06, 1997 4:49 PM
> 
> On Mon, 6 Jan 1997, Brian Guilbault wrote:
> 
> > 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.
> 
> I was assuming that they followed the end of their own message where
> they said they'd make it impossible for infravision to be cast on
> elves.
> 
> BTW, making a new AFF flag was worthless.  Why not change CAN_SEE to
> just check if they are an elf?  Better than wasting another bitvector.
> 
> 
> --
> Daniel Koepke
> dkoepke@california.com
> Forgive me father, for I am sin.
> 
> 
> +-----------------------------------------------------------+
> | Ensure that you have read the CircleMUD Mailing List FAQ: |
> |   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
> +-----------------------------------------------------------+
+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+



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