keoco Posted February 29, 2012 Group: Members Topic Count: 43 Topics Per Day: 0.01 Content Count: 130 Reputation: 0 Joined: 01/24/12 Last Seen: April 11, 2012 Share Posted February 29, 2012 The dmg on acid demonstration is too high, how do i make it lower? Quote Link to comment Share on other sites More sharing options...
ngek202 Posted February 29, 2012 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 530 Reputation: 33 Joined: 01/17/12 Last Seen: August 16, 2017 Share Posted February 29, 2012 I think here in battle.c } case AM_DEMONSTRATION: skillratio += 20*skill_lv; break; Quote Link to comment Share on other sites More sharing options...
Emistry Posted February 29, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10017 Reputation: 2369 Joined: 10/28/11 Last Seen: 18 hours ago Share Posted February 29, 2012 I think here in battle.c } case AM_DEMONSTRATION: skillratio += 20*skill_lv; break; sorry...but he is looking for adjustment on this 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; Quote Link to comment Share on other sites More sharing options...
keoco Posted February 29, 2012 Group: Members Topic Count: 43 Topics Per Day: 0.01 Content Count: 130 Reputation: 0 Joined: 01/24/12 Last Seen: April 11, 2012 Author Share Posted February 29, 2012 thanks, but which bit do i edit? Quote Link to comment Share on other sites More sharing options...
Derceto Posted March 2, 2012 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 43 Reputation: 2 Joined: 01/17/12 Last Seen: February 15, 2014 Share Posted March 2, 2012 md.damage = (int)((int64)7*tstatus->vit*sstatus->int_*sstatus->int_ / (10*(tstatus->vit+sstatus->int_))); That's the formula you have. If you just want to nerf the damage, you can divide it by 2 whatnot. If you mean that damage gets too high and it goes into healing, then it's already fixed below: 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; Instead of INT_MAX/2 you can limit the whole thing to a different cap, like 123456 damage: if (md.damage < 0 || md.damage > 123456) //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 = 123456; break; Quote Link to comment Share on other sites More sharing options...
Question
keoco
The dmg on acid demonstration is too high, how do i make it lower?
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.