this will make max resist for all Race only 50% right?
No, since you can't use
RC_ALL.
EDIT: Doesn;t work with RC_ALL (added each one of Race, excluding
RC_NonDemiHuman,RC_NonPlayer,RC_DemiPlayer,RC_NonDemiPlayer,RC_All which gives me problem compiling when those are included.)
You can only use the following races. The other ones are combined types.
RC_FORMLESS ///< Formless
RC_UNDEAD ///< Undead
RC_BRUTE ///< Beast/Brute
RC_PLANT ///< Plant
RC_INSECT ///< Insect
RC_FISH ///< Fish
RC_DEMON ///< Demon
RC_DEMIHUMAN ///< Demi-Human (not including Player)
RC_ANGEL ///< Angel
RC_DRAGON ///< Dragon
RC_PLAYER ///< Player
RC_BOSS ///< Boss
RC_NONBOSS ///< Non-boss
Also, im currently using Pre Renewal, does this work also on pre renewal if compiled?
Yes. The renewal code won't be compiled. But if you want to, you can add only pre-RE code. (Note the '
n' in #if
ndef. This means "if NOT defined RENEWAL".)
#ifndef RENEWAL
sd->subrace[RC_FORMLESS] = max(sd->subrace[RC_FORMLESS], 50);
sd->subrace[RC_UNDEAD] = max(sd->subrace[RC_UNDEAD], 50);
sd->subrace[RC_BRUTE] = max(sd->subrace[RC_BRUTE], 50);
sd->subrace[RC_PLANT] = max(sd->subrace[RC_PLANT], 50);
sd->subrace[RC_INSECT] = max(sd->subrace[RC_INSECT], 50);
sd->subrace[RC_FISH] = max(sd->subrace[RC_FISH], 50);
sd->subrace[RC_DEMON] = max(sd->subrace[RC_DEMON], 50);
sd->subrace[RC_DEMIHUMAN] = max(sd->subrace[RC_DEMIHUMAN], 50);
sd->subrace[RC_ANGEL] = max(sd->subrace[RC_ANGEL], 50);
sd->subrace[RC_DRAGON] = max(sd->subrace[RC_DRAGON], 50);
sd->subrace[RC_PLAYER] = max(sd->subrace[RC_PLAYER], 50);
sd->subrace[RC_BOSS] = max(sd->subrace[RC_BOSS], 50);
sd->subrace[RC_NONBOSS] = max(sd->subrace[RC_NONBOSS], 50);
#endif
~Kenpachi