Jump to content
  • 0

MaX Damage Limit


Question

Posted

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.

5 answers to this question

Recommended Posts

  • 0
Posted
On 3/7/2021 at 1:45 AM, rokithea said:

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

Hey! I found out I have this option inside the game, as soon as I check this option "Expand Damage" on Game Settings I can see damages greater than 999,999:

image.png.7820f4593ee689b883379407739fd301.png

Check my test too:

image.png.56e7beab9bc070f80a415c7a67dc0e11.png

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...