Jump to content
  • 0

MaX Damage Limit


xG000000

Question


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.01
  • Content Count:  16
  • Reputation:   0
  • Joined:  10/07/20
  • Last Seen:  

uqk3OBK.png

 

it tried to limit the reflect but still exceed the max damage limit bonus.

return cap_value(min(rdamage,max_damage),INT_MIN,INT_MAX);

im also using stormbreaker source mod 

bonus bDamageLimit

but when i try to make an item that will chance to deal max  pyhiscal damage, it ignores the reflect of it

  if (sd) {
        for (const auto& it : sd->atkratechance) {
            if (it.value2 > rand() % 1000)
                ATK_ADDRATE(wd.damage, wd.damage2, it.value1);
        }

but when i try it with magic attack the reflect just work fine.

  if (sd) {
        for (const auto& it : sd->matkratechance) {
            if (it.value2 > rand() % 1000)
                MATK_ADDRATE(it.value1);
        }

 

TL:DR. i just want to make a damage cap on my files but looking at battle.cpp i cant make it work. I tried to change max damage in cliff.cpp but it was just visual. max damage on my server deals 2.147Billion and i just want to make it to my specific limit.

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.02
  • Content Count:  911
  • Reputation:   166
  • Joined:  11/27/14
  • Last Seen:  

if u just want to reduce the damage by rate, rAthena implements this Skill Damage Adjustment (originally by @Lilith)

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.01
  • Content Count:  16
  • Reputation:   0
  • Joined:  10/07/20
  • Last Seen:  

that only implies with skill damage not physical attack.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  2
  • Reputation:   0
  • Joined:  05/12/20
  • Last Seen:  

how to edit max damage display to more than 999.999 ??

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