Jump to content
  • 0

Left hand on Dual Wield reduces damage


Question

Posted

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.

1 answer to this question

Recommended Posts

  • 0
Posted (edited)
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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...