Excluding a class out of a code

Phenex

New member
Messages
16
Points
0
So, this is the code which is located in Pc.c that give 100 stat points after rebirth.

sd->status.status_point = statp[sd->status.base_level] + ( sd->class_&JOBL_UPPER ? 52 : 0 ); // extra 52+48=100 stat points


I've added 3rd baby jobs into it:

sd->status.status_point = statp[sd->status.base_level] + ( sd->class_&JOBL_UPPER ? 52 : 0 ) + ( sd->class_&JOBL_THIRD && sd->class_&JOBL_BABY ? 52 : 0 ); // extra 52+48=100 stat points

And it works.
 
The problem is Expanded Baby Super Novice class is also a 3rd baby class, and I don't want them to have 100 stat points given.
 
I want to exclude the Expanded Baby Super Novice out of this code. How do I do it? I don't know how to code it that way and I've been trying literally the whole day with various methods trying get it to work.
 
Really hoping one of you Src experts could shed some light in to this. Thank you~

 
Last edited by a moderator:
If I'm not mistaken, basically you want the following jobs to have the bonus on rebirth:

  • Every Rebirth job
  • Every Baby Third Job except Baby Expanded Super Novice
So your rule should be

sd->class_&JOBL_UPPER || ( sd->class_&(JOBL_THIRD|JOBL_BABY) && MAPID_SUPER_BABY_E!=sd->class_&MAPID_SUPER_BABY_E)
 
And it would look like this
 

Code:
sd->status.status_point = statp[sd->status.base_level] + ( (sd->class_&JOBL_UPPER || ( sd->class_&(JOBL_THIRD|JOBL_BABY) && MAPID_SUPER_BABY_E!=sd->class_&MAPID_SUPER_BABY_E)) ? 52 : 0 )
 
 
Last edited by a moderator:
Back
Top