summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-07-31 23:21:10 -0300
committerJesusaves <cpntb1@ymail.com>2020-07-31 23:21:10 -0300
commit6d595819ea947f6f3c3d89d39a2649f3767f7581 (patch)
tree4434def19c119a7dc0269b005076466d97ac5b90
parentd997e605b78aa3ea6e8ca685296bcce85de5fad1 (diff)
downloadhercules-6d595819ea947f6f3c3d89d39a2649f3767f7581.tar.gz
hercules-6d595819ea947f6f3c3d89d39a2649f3767f7581.tar.bz2
hercules-6d595819ea947f6f3c3d89d39a2649f3767f7581.tar.xz
hercules-6d595819ea947f6f3c3d89d39a2649f3767f7581.zip
[TMW2] BATK MOD
-rw-r--r--src/map/status.c10
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.