Jump to content
  • 0

2 Vit = 1 Def | Where can I change this?


Question

3 answers to this question

Recommended Posts

Posted (edited)

it's in src/map/status.csearch for this line:
status->def2 += (int)(((float)level + status->vit)/2 + ((float)status->agi/5)); //base level + (every 2 vit = +1 def) + (every 5 agi = +1 def)

just edit the status->vit)/2

you can just use normal mathematic operators (+, * , / and -)

And don't forget to consider the brackets, I find it weird that the comment says that def = level + vit/2 + agi/5

since the value is written like this: def = (level + vit)/2 + agi/5

 

It also applies only to renewal and be sure that changing it can imbalance your server. (not from code but from playstyle)

If you wanted to change the value for pre-renewal it's just a few lines later, this line:

status->def2 += status->vit;

just multiply it with 2 after the vit.

Edited by skyleo
Posted

nope, "status ->def2 +=" means that the following value is being added to the def. so adding the value of your vit multiplied with 2 means that you have 1 vit = 2 def,
you have to devide it, just like in the renewal formula.

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