Jump to content
  • 0

Renewal Acid Demonstration


Virtue

Question


  • Group:  Members
  • Topic Count:  92
  • Topics Per Day:  0.02
  • Content Count:  354
  • Reputation:   22
  • Joined:  11/17/11
  • Last Seen:  

   case CR_ACIDDEMONSTRATION: // updated the formula based on a Japanese formula found to be exact [Reddozen]
       if(tstatus->vit+sstatus->int_) //crash fix
           md.damage = (int)((int64)7*tstatus->vit*sstatus->int_*sstatus->int_ / (10*(tstatus->vit+sstatus->int_)));
       else
           md.damage = 0;
       if (tsd) md.damage>>=1;
       if (md.damage < 0 || 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;
       break;

How do I make this that Acid Demonstration's damage is based from casters int & str?

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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...