Apply MHP limit based on bLv (#3003)

* Fixes #814.
* Applies the official maximum HP limit on players.
* Official notice: http://ro.gnjoy.com/news/notice/View.asp?BBSMode=10001&seq=6322
* Levels caps are as follows: Lv 99 = 330k; Lv 150 = 660k; Lv 175 = 1.1m
Thanks to @flamefury!
This commit is contained in:
flamefury
2018-04-06 09:29:54 -07:00
committed by Aleos
parent e509930a67
commit 7f2c6cf2f5
5 changed files with 30 additions and 6 deletions

View File

@@ -8133,7 +8133,9 @@ static const struct _battle_data {
{ "max_walk_speed", &battle_config.max_walk_speed, 300, 100, 100*DEFAULT_WALK_SPEED, },
{ "max_lv", &battle_config.max_lv, 99, 0, MAX_LEVEL, },
{ "aura_lv", &battle_config.aura_lv, 99, 0, INT_MAX, },
{ "max_hp", &battle_config.max_hp, 32500, 100, 1000000000, },
{ "max_hp_lv99", &battle_config.max_hp_lv99, 330000, 100, 1000000000, },
{ "max_hp_lv150", &battle_config.max_hp_lv150, 660000, 100, 1000000000, },
{ "max_hp", &battle_config.max_hp, 1100000, 100, 1000000000, },
{ "max_sp", &battle_config.max_sp, 32500, 100, 1000000000, },
{ "max_cart_weight", &battle_config.max_cart_weight, 8000, 100, 1000000, },
{ "max_parameter", &battle_config.max_parameter, 99, 10, SHRT_MAX, },