diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-07-31 23:21:10 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-07-31 23:21:10 -0300 |
commit | 6d595819ea947f6f3c3d89d39a2649f3767f7581 (patch) | |
tree | 4434def19c119a7dc0269b005076466d97ac5b90 /src/map/status.c | |
parent | d997e605b78aa3ea6e8ca685296bcce85de5fad1 (diff) | |
download | hercules-6d595819ea947f6f3c3d89d39a2649f3767f7581.tar.gz hercules-6d595819ea947f6f3c3d89d39a2649f3767f7581.tar.bz2 hercules-6d595819ea947f6f3c3d89d39a2649f3767f7581.tar.xz hercules-6d595819ea947f6f3c3d89d39a2649f3767f7581.zip |
[TMW2] BATK MOD
Diffstat (limited to 'src/map/status.c')
-rw-r--r-- | src/map/status.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/map/status.c b/src/map/status.c index 2b7bd1333..9a235e5e3 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -4469,17 +4469,23 @@ static int status_base_atk(const struct block_list *bl, const struct status_data case W_SHOTGUN: case W_GRENADE: flag = 1; + break; + case W_STAFF: + flag = 2; } } - if ( flag ) { + if ( flag == 1 ) { str = st->dex; dex = st->str; + } else if ( flag == 2 ) { + str = st->int_; + dex = st->dex; } else { str = st->str; dex = st->dex; } #ifdef RENEWAL - dstr = str; + dstr = str*15/10; #endif //Normally only players have base-atk, but homunc have a different batk // equation, hinting that perhaps non-players should use this for batk. |