Jump to content
  • 0

True damage item bonus


Critica

Question


  • Group:  Members
  • Topic Count:  82
  • Topics Per Day:  0.02
  • Content Count:  223
  • Reputation:   4
  • Joined:  02/23/12
  • Last Seen:  

Hey guys, just wondering if true damage is possible as item bonus?

for example. if you have +500 true damage, you will always deal 500 watever the element, def etc. is

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Developer
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  806
  • Reputation:   233
  • Joined:  01/30/13
  • Last Seen:  

Hmmm it's kind of similar to the vellum weapons except they deal a fixed percentual damage amount and you want it to be a fixed number.

 

You can look into its implementation and adjust it to your liking:

 

battle.c

void battle_vanish(struct map_session_data *sd, struct block_list *target, struct Damage *wd)

Take a look into that function for some inspiration. If you don't use the bonus at all e.g. because you don't have vellum weapons in the first place, then it's easiest to just recode the function so it does absolute damage instead of percentual. If you need both, you'll have to implement a bonus that works similar to this one.

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