diff options
author | AnnieRuru <jeankof@ymail.com> | 2015-11-20 18:53:14 +0800 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2015-12-25 21:17:38 +0100 |
commit | 83301cc59a75f14bea4b73136e7dffc396f37fc3 (patch) | |
tree | 99c72365f57942ce2f00a57b534b216f5ad4a000 /src/map/status.c | |
parent | 75141a35e907f76ce7626f0f7cb421ec3217bcc1 (diff) | |
download | hercules-83301cc59a75f14bea4b73136e7dffc396f37fc3.tar.gz hercules-83301cc59a75f14bea4b73136e7dffc396f37fc3.tar.bz2 hercules-83301cc59a75f14bea4b73136e7dffc396f37fc3.tar.xz hercules-83301cc59a75f14bea4b73136e7dffc396f37fc3.zip |
*Show the katar critical bonus in player status window
- this is unofficial behavior, so it has to be in battle config
Related to #579
Closes #882 as merged
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/status.c')
-rw-r--r-- | src/map/status.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/status.c b/src/map/status.c index c7ce2c9c0..32e5760a7 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -3754,6 +3754,8 @@ void status_calc_bl_main(struct block_list *bl, /*enum scb_flag*/int flag) { else st->cri = status->calc_critical(bl, sc, bst->cri + 3*(st->luk - bst->luk), true); } + if (battle_config.show_katar_crit_bonus && bl->type == BL_PC && ((TBL_PC*)bl)->status.weapon == W_KATAR) + st->cri <<= 1; if(flag&SCB_FLEE2 && bst->flee2) { if (st->luk == bst->luk) |