Jump to content
  • 0
Sign in to follow this  
Phenex

Excluding a class out of a code

Question

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~

Edited by Phenex

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

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
 

 

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 )
 
Edited by Nardoth

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.