Jump to content
  • 0

Limiting the damage skill


Danz

Question


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  12
  • Reputation:   0
  • Joined:  01/25/13
  • Last Seen:  

Hello, I need help to limit the damage of a skill, if I want her to no more than 80k

 

 

case MC_MAMMONITE: skillratio += 50*skill_lv; break;

 

 


if anyone can help I will be very grateful.

T_T

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Developer
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  801
  • Reputation:   227
  • Joined:  01/30/13
  • Last Seen:  

You have to put the code further down at the end of function "battle_calc_weapon_attack".

 

Probably below "wd = battle_calc_weapon_final_atk_modifiers(wd, src, target, skill_id, skill_lv);".

 

Like...

if(skill_id == MC_MAMMONITE)
    wd.damage = cap_value(wd.damage, INT_MIN, 80000);
  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  12
  • Reputation:   0
  • Joined:  01/25/13
  • Last Seen:  

Thanks, Playtestar!  /no1

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