Re: [NEWBIE] Races

From: Shane P. Lee (tacodog21@yahoo.com)
Date: 03/10/01


First, what is the value of the Human race? If you have it
defined as -1, it won't save. I'm not sure, but it might not
save if you have it defined as 0 either, depending on whether
or not you have ASCII pfiles.

Second, if you set elves as affected by infravision, you take
take the chance of them loosing it, for one reason or another.
Instead, look for all the places in the code that check for
infravision, and do something like this:
/* WARNING: mailer code, may not compile! */
else if (IS_DARK(ch->in_room) && !CAN_SEE_IN_DARK(ch) &&
 (AFF_FLAGGED(i, AFF_INFRAVISION) || IS_ELF(i)))

Or, you could add IS_ELF to the CAN_SEE_IN_DARK code like this:

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

Again, that may not compile so you may have to experiment some.

-FIRE



=====
You know you've landed gear-up when it takes full power to taxi.

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices.
http://auctions.yahoo.com/

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/04/01 PST