Jump to content
  • 0

[solved] Stats Calculation


pajodex

Question


  • Group:  Members
  • Topic Count:  78
  • Topics Per Day:  0.03
  • Content Count:  436
  • Reputation:   167
  • Joined:  12/12/17
  • Last Seen:  

Hi, I have successfully edited the Def and Mdef to my desired setting. However, I'm encountering problem with regards with Atk Calculation. After compiling (no errors), the Atk1 still remains at '416' on a str and dex of 230. (see attached photos)

status.cpp (before)

// Atk
		stat = (status_get_homstr(bl) + status_get_homdex(bl)) / 5;
		status->rhw.atk = cap_value(stat, 1, SHRT_MAX);

status.cpp (after)

// Atk
		stat = (status_get_homstr(bl) + status_get_homdex(bl)) * 500000; // testing only
		status->rhw.atk = cap_value(stat, 1, SHRT_MAX);

 

No matter how much I screw with this formula, nothing has changed

 

Pic below is the default formula for Atk, Def, and Mdef

No automatic alt text available.

 

After editing Atk, Def, and Mdef:

No automatic alt text available.

 

I hope someone can help Thanks~

 

Edited by pajodex
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...