Jump to content
  • 0
Dissidia

Limit the Max 'bonus2 bSubRace,RC_Player,100;'

Question

4 answers to this question

Recommended Posts

  • 0

If you want to limit the total bonus you could do that in pc.c:

	case SP_SUBRACE: // bonus2 bSubRace,r,x;
		PC_BONUS_CHK_RACE(type2,SP_SUBRACE);
		if(sd->state.lr_flag != 2)
			sd->subrace[type2]+=val;
break;

For example:

	case SP_SUBRACE: // bonus2 bSubRace,r,x;
		PC_BONUS_CHK_RACE(type2,SP_SUBRACE);
		if(sd->state.lr_flag != 2) {
			sd->subrace[type2]+=val;
			if(sd->subrace[type2] > 90)
				sd->subrace[type2] = 90;
		}
break;

 

  • Upvote 3
Link to comment
Share on other sites

  • 0

You already found the correct line. Just change it to:

`bonus2 bSubRace,RC_Player,90;`

Edited by Jey
Link to comment
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.   Paste as plain text instead

  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.



×
×
  • Create New...

Important Information

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