Re: [NEWBIE][Code] Race Abilities

From: Mike Stilson (mike@velgarian.sytes.net)
Date: 12/14/02


On Sat, Dec 14, 2002 at 09:43:35PM -0700, Jim wrote:

(for the ones that set an affect, put them in somewhere when the char
logs in.  Mailer code, YMMV and this is just how I'd do it.)

>       Elf regen mana x2 normal rate
limits.c:mana_gain()
if(GET_RACE(ch) == RACE_ELF) gain << 1;

>       Dwarf See in the dark / +1 damroll
if(GET_RACE(ch) == RACE_DWARF) {
affect_modify(ch, APPLY_NONE, 0, AFF_INFRAVISION, FALSE);
affect_modify(ch, APPLY_DAMROLL, 1, 0, FALSE);
affect_total(ch);
}

>       Troll regens hp x2 normal rate
limits.c:hit_gain()
if(GET_RACE(ch) == RACE_TROLL) gain << 1;

>       Hobbit perm invis
if(GET_RACE(ch) == RACE_HOBBIT) {
affect_modify(ch, APPLY_NONE, 0, AFF_INFRAVISION, FALSE);
affect_total(ch);
}


>       Shade 0 eat/drink / perm sneak
if(GET_RACE(ch) == RACE_SHADE) {
affect_modify(ch, APPLY_NONE, 0, AFF_SNEAK, FALSE);
affect_total(ch);
}
and in limits.c:gain_condition()
case FULL:
if(GET_RACE(ch) == RACE_SHADE) return;

case THIRSTY:
if(GET_RACE(ch) == RACE_SHADE) return;


-me

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT