Jump to content
  • 0

Left hand on Dual Wield reduces damage


deitalk

Question


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   0
  • Joined:  01/27/15
  • Last Seen:  

Hi there, I'd like to know how to modify left hand basic attack damage while dual wielding in order to reduce damage instead of ignore racial/elemental/defense reductions.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  98
  • Reputation:   74
  • Joined:  12/04/14
  • Last Seen:  

On 10/6/2017 at 8:48 AM, deitalk said:

Hi there, I'd like to know how to modify left hand basic attack damage while dual wielding in order to reduce damage instead of ignore racial/elemental/defense reductions.

 

in scr/map/battle.c

find: //Dual-wield

Quote

         if (wd.damage) {
                if( (sd->class_&MAPID_BASEMASK) == MAPID_THIEF ) {
                    skill = pc_checkskill(sd,AS_RIGHT);
                    ATK_RATER(wd.damage, 50 + (skill * 10))
                }
                else if(sd->class_ == MAPID_KAGEROUOBORO) {
                    skill = pc_checkskill(sd,KO_RIGHT);
                    ATK_RATER(wd.damage, 70 + (skill * 10))
                }
                if(wd.damage < 1)
                    wd.damage = 1;
            }
            if (wd.damage2) {
                if( (sd->class_&MAPID_BASEMASK) == MAPID_THIEF) {
                    skill = pc_checkskill(sd,AS_LEFT);
                    ATK_RATEL(wd.damage2, 30 + (skill * 10))
                }
                else if(sd->class_ == MAPID_KAGEROUOBORO) {
                    skill = pc_checkskill(sd,KO_LEFT);
                    ATK_RATEL(wd.damage2, 50 + (skill * 10))
                }
                if(wd.damage2 < 1)
                    wd.damage2 = 1;
            }

 

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