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... > > SET_BIT(AFF_FLAGS(ch), AFF_INFRAVISION); 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 -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Brian Guilbault - GMI Engineering Institute E-mail: guil9964@gmi.edu, dante@i-55.com WWW: http://www.gmi.edu/~guil9964/ QuarantineMUD: Telnet to exit2.i-55.com 4000 -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +-----------------------------------------------------------+ | 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