Jump to content
  • 0

bDefRatioAtkRace


sevenrosuport

Question


  • Group:  Members
  • Topic Count:  52
  • Topics Per Day:  0.01
  • Content Count:  142
  • Reputation:   1
  • Joined:  07/08/12
  • Last Seen:  

wanted ignorance only 50% and not 100% as I have help with this bonus bDefRatioAtkRace?

13017,House_Auger_,Ice Pick,4,20,,600,70,,1,1,0x028F5EEE,7,2,2,4,36,1,1,{ bonus bDefRatioAtkRace,RC_Boss; bonus bDefRatioAtkRace,RC_NonBoss; },{},{}

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

I'm not 100% positive but try changing this:

if( sd->right_weapon.def_ratio_atk_ele & (1<<tstatus->def_ele) ||
 sd->right_weapon.def_ratio_atk_race & (1<<tstatus->race) ||
 sd->right_weapon.def_ratio_atk_race & (1<<(is_boss(target)?RC_BOSS:RC_NONBOSS))
)
 flag.pdef = 1;
if( sd->left_weapon.def_ratio_atk_ele & (1<<tstatus->def_ele) ||
 sd->left_weapon.def_ratio_atk_race & (1<<tstatus->race) ||
 sd->left_weapon.def_ratio_atk_race & (1<<(is_boss(target)?RC_BOSS:RC_NONBOSS))

in battle.c

to this:

if( sd->right_weapon.def_ratio_atk_ele & (1<<tstatus->def_ele) ||
 sd->right_weapon.def_ratio_atk_race & ((1<<tstatus->race)/2) ||
 sd->right_weapon.def_ratio_atk_race & ((1<<(is_boss(target)?RC_BOSS:RC_NONBOSS))/2)
)
 flag.pdef = 1;
if( sd->left_weapon.def_ratio_atk_ele & (1<<tstatus->def_ele) ||
 sd->left_weapon.def_ratio_atk_race & ((1<<tstatus->race)/2) ||
 sd->left_weapon.def_ratio_atk_race & ((1<<(is_boss(target)?RC_BOSS:RC_NONBOSS))/2)

Edit: BTW, IcePick does not ignore def, but does more dmg depending on def.

Edited by GmOcean
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  271
  • Reputation:   7
  • Joined:  01/06/12
  • Last Seen:  

I'm not 100% positive but try changing this:

if( sd->right_weapon.def_ratio_atk_ele & (1<<tstatus->def_ele) ||
 sd->right_weapon.def_ratio_atk_race & (1<<tstatus->race) ||
 sd->right_weapon.def_ratio_atk_race & (1<<(is_boss(target)?RC_BOSS:RC_NONBOSS))
)
 flag.pdef = 1;
if( sd->left_weapon.def_ratio_atk_ele & (1<<tstatus->def_ele) ||
 sd->left_weapon.def_ratio_atk_race & (1<<tstatus->race) ||
 sd->left_weapon.def_ratio_atk_race & (1<<(is_boss(target)?RC_BOSS:RC_NONBOSS))

in battle.c

to this:

if( sd->right_weapon.def_ratio_atk_ele & (1<<tstatus->def_ele) ||
 sd->right_weapon.def_ratio_atk_race & ((1<<tstatus->race)/2) ||
 sd->right_weapon.def_ratio_atk_race & ((1<<(is_boss(target)?RC_BOSS:RC_NONBOSS))/2)
)
 flag.pdef = 1;
if( sd->left_weapon.def_ratio_atk_ele & (1<<tstatus->def_ele) ||
 sd->left_weapon.def_ratio_atk_race & ((1<<tstatus->race)/2) ||
 sd->left_weapon.def_ratio_atk_race & ((1<<(is_boss(target)?RC_BOSS:RC_NONBOSS))/2)

Edit: BTW, IcePick does not ignore def, but does more dmg depending on def.

I'll try this too, as i see on the code, the damage is divided by 2, good idea ^_^

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

Your welcome. Some feed back on whether it worked or not would be very much appreciated, as it would help to further my understanding of the src code.

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