summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDennis Friis <peavey@placid.dk>2008-04-21 00:41:10 +0000
committerDennis Friis <peavey@placid.dk>2008-04-21 00:41:10 +0000
commit84ff7f18502d6b0f07cedb54f7b79f9ded1e8f1a (patch)
tree573edf442e75fc5fe44d145c0623ee0f33f98823 /src
parent4ba8a054266c78e6ec4edc5b70d5b42ce2bee344 (diff)
downloadtmwa-84ff7f18502d6b0f07cedb54f7b79f9ded1e8f1a.tar.gz
tmwa-84ff7f18502d6b0f07cedb54f7b79f9ded1e8f1a.tar.bz2
tmwa-84ff7f18502d6b0f07cedb54f7b79f9ded1e8f1a.tar.xz
tmwa-84ff7f18502d6b0f07cedb54f7b79f9ded1e8f1a.zip
balance statpoint distribution a tad
Diffstat (limited to 'src')
-rw-r--r--src/map/atcommand.c8
-rw-r--r--src/map/pc.c4
2 files changed, 6 insertions, 6 deletions
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;