From 84ff7f18502d6b0f07cedb54f7b79f9ded1e8f1a Mon Sep 17 00:00:00 2001 From: Dennis Friis Date: Mon, 21 Apr 2008 00:41:10 +0000 Subject: balance statpoint distribution a tad --- src/map/atcommand.c | 8 ++++---- src/map/pc.c | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/map/atcommand.c b/src/map/atcommand.c index 8dc39ba..adad4fd 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -2117,7 +2117,7 @@ int atcommand_baselevelup( if (level > battle_config.maximum_level || level > (battle_config.maximum_level - sd->status.base_level)) // fix positiv overflow level = battle_config.maximum_level - sd->status.base_level; for (i = 1; i <= level; i++) - sd->status.status_point += (sd->status.base_level + i + 14) / 5; + sd->status.status_point += (sd->status.base_level + i + 14) / 4; sd->status.base_level += level; clif_updatestatus(sd, SP_BASELEVEL); clif_updatestatus(sd, SP_NEXTBASEEXP); @@ -2135,7 +2135,7 @@ int atcommand_baselevelup( level = 1 - sd->status.base_level; if (sd->status.status_point > 0) { for (i = 0; i > level; i--) - sd->status.status_point -= (sd->status.base_level + i + 14) / 5; + sd->status.status_point -= (sd->status.base_level + i + 14) / 4; if (sd->status.status_point < 0) sd->status.status_point = 0; clif_updatestatus(sd, SP_STATUSPOINT); @@ -4454,7 +4454,7 @@ int atcommand_character_baselevel( if (level > battle_config.maximum_level || level > (battle_config.maximum_level - pl_sd->status.base_level)) // fix positiv overflow level = battle_config.maximum_level - pl_sd->status.base_level; for (i = 1; i <= level; i++) - pl_sd->status.status_point += (pl_sd->status.base_level + i + 14) / 5; + pl_sd->status.status_point += (pl_sd->status.base_level + i + 14) / 4; pl_sd->status.base_level += level; clif_updatestatus(pl_sd, SP_BASELEVEL); clif_updatestatus(pl_sd, SP_NEXTBASEEXP); @@ -4472,7 +4472,7 @@ int atcommand_character_baselevel( level = 1 - pl_sd->status.base_level; if (pl_sd->status.status_point > 0) { for (i = 0; i > level; i--) - pl_sd->status.status_point -= (pl_sd->status.base_level + i + 14) / 5; + pl_sd->status.status_point -= (pl_sd->status.base_level + i + 14) / 4; if (pl_sd->status.status_point < 0) pl_sd->status.status_point = 0; clif_updatestatus(pl_sd, SP_STATUSPOINT); diff --git a/src/map/pc.c b/src/map/pc.c index 9a96008..4844524 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -4248,7 +4248,7 @@ int pc_checkbaselevelup(struct map_session_data *sd) sd->status.base_exp -= next; sd->status.base_level ++; - sd->status.status_point += (sd->status.base_level+14) / 5 ; + sd->status.status_point += (sd->status.base_level + 14) / 4; clif_updatestatus(sd,SP_STATUSPOINT); clif_updatestatus(sd,SP_BASELEVEL); clif_updatestatus(sd,SP_NEXTBASEEXP); @@ -5183,7 +5183,7 @@ int pc_setparam(struct map_session_data *sd,int type,int val) case SP_BASELEVEL: if (val > sd->status.base_level) { for (i = 1; i <= (val - sd->status.base_level); i++) - sd->status.status_point += (sd->status.base_level + i + 14) / 5 ; + sd->status.status_point += (sd->status.base_level + i + 14) / 4; } sd->status.base_level = val; sd->status.base_exp = 0; -- cgit v1.2.3-60-g2f50