Jump to content
  • 0
Sign in to follow this  
Kuroyama

Need help soul link creator

Question

image.png.14c1eda894a2d0a61b97151b5ace4305.png

How to fix acid demo damage soul link?

 

	// If linked, alchemists will have 15% increase in CR_ACIDDEMONSTRATION's damage
		if( sd->sc.data[SC_SOULLINK] && sd->sc.data[SC_SOULLINK]->val2 == SL_ALCHEMIST )
			md.damage += md.damage*15/100;

I'm using this one but it makes the damage 999999 without link.

 

EDIT: This is for additional 15% dmage for acid demo when soul linked.

Edited by Kuroyama

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

  • 0

Hm, should be working fine.

 

Did you put that code inside CR_ACIDDEMOSTRATION after the capped md.damaged right?.

 

Spoiler

		// Some monsters have totaldef higher than md.damage in some cases, leading to md.damage < 0
		if( md.damage < 0 )
			md.damage = 0;
		if( md.damage > INT_MAX>>1 )
			//Overflow prevention, will anyone whine if I cap it to a few billion?
			//Not capped to INT_MAX to give some room for further damage increase.
			md.damage = INT_MAX>>1;

		if( sd->sc.data[SC_SOULLINK] && sd->sc.data[SC_SOULLINK]->val2 == SL_ALCHEMIST )
			md.damage += md.damage*15/100;
		break;

 

 

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.