Re: [Circle] [CODE] New race and infravision

From: Daniel Koepke (dkoepke@california.com)
Date: 11/25/96


On Mon, 25 Nov 1996, Johan Dustler wrote:

> Instead of changing can see, you could affect the chars with the spell
> infravision, with a duration of -1. Somewhere after the stats has been
> rolled (hard to say a good place since I don't know how your code looks
> like) put this bit of code:
> 
> struct affected_type af;
> 
> if (race == elf || race == fairy) {
>   af.duration = -1;
>   af.bitvector = AFF_INFRAVISION;
> 
>   affect_join(d->character, af, FALSE, FALSE, FALSE, FALSE);
> }

Or, you could just do:
  SET_BIT(AFF_FLAGS(ch), AFF_INFRAVISION);


--
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   |
+-----------------------------------------------------------+



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