diff options
author | Jedzkie <jedzkie13@rocketmail.com> | 2016-03-21 23:55:30 +0800 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2018-11-14 18:43:57 +0100 |
commit | 86b70dc7ea0a6d3aee6d99a0f802668fc9a0eb75 (patch) | |
tree | 84009e37fa3d86e91ca597c4708a7c0a7b6bd42e /src/map/status.h | |
parent | 639af795caf86f9f30770b5d1d2e9164876deb1f (diff) | |
download | hercules-86b70dc7ea0a6d3aee6d99a0f802668fc9a0eb75.tar.gz hercules-86b70dc7ea0a6d3aee6d99a0f802668fc9a0eb75.tar.bz2 hercules-86b70dc7ea0a6d3aee6d99a0f802668fc9a0eb75.tar.xz hercules-86b70dc7ea0a6d3aee6d99a0f802668fc9a0eb75.zip |
Fixes #889 & #840
- Novice classes will never go below 50% hp when died.
- Other classes will show 1 HP rather than 0 when died.
- Added battle configuration.
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/status.h')
-rw-r--r-- | src/map/status.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/status.h b/src/map/status.h index e7cd5e94c..532efce17 100644 --- a/src/map/status.h +++ b/src/map/status.h @@ -2384,6 +2384,8 @@ struct status_interface { unsigned short (*base_atk) (const struct block_list *bl, const struct status_data *st); unsigned int (*get_base_maxhp) (const struct map_session_data *sd, const struct status_data *st); unsigned int (*get_base_maxsp) (const struct map_session_data *sd, const struct status_data *st); + unsigned int (*get_restart_hp) (const struct map_session_data *sd, const struct status_data *st); + unsigned int (*get_restart_sp) (const struct map_session_data *sd, const struct status_data *st); int (*calc_npc_) (struct npc_data *nd, enum e_status_calc_opt opt); unsigned short (*calc_str) (struct block_list *bl, struct status_change *sc, int str); unsigned short (*calc_agi) (struct block_list *bl, struct status_change *sc, int agi); |