Re[2]: Race and Infravision

angus@EDGIL.CCMAIL.COMPUSERVE.COM
Date: 08/05/97


Quote ------>
>         Umm... why? All I did was set the AFF_FLAG of AFF_INFRAVISION when the
> character's stats are created, either in classes or races. Constant effect
> by infravision instantly. Seems to work for me. I even added special
> IF-ELSE statement to do_score to indicate it as a special skill.
>
> Example:
>
> case RACE_RAKH: /* Rakh race on my MUD */
> (AFF_FLAGS(ch) = AFF_INFRAVISION);
>
     <------ Quote

     Don't forget in point_update() in limits.c to add something like:


      if ((!IS_AFFECTED(i, AFF_INFRARED)) && ((IS_D_ELF(i)) ||
                (IS_DWARF(i))))
            SET_BIT(i->specials.affected_by, AFF_INFRARED);


     or else it might go away when 1) they die  2) some imm unaffects them
     3) other weirdness happens


     --Angus


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



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