summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorcelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-16 17:47:47 +0000
committercelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-16 17:47:47 +0000
commit2a31aa65c6c41b57182292769618d287c3eae560 (patch)
tree5bb86fc1f33a0e1f6a72efb665934951e881e9f4 /src/map/pc.c
parent5b4cca15e45becd22bd079991e04fe3f1d98afe2 (diff)
downloadhercules-2a31aa65c6c41b57182292769618d287c3eae560.tar.gz
hercules-2a31aa65c6c41b57182292769618d287c3eae560.tar.bz2
hercules-2a31aa65c6c41b57182292769618d287c3eae560.tar.xz
hercules-2a31aa65c6c41b57182292769618d287c3eae560.zip
* Updated maximum levels for supernovice to 99
* Updated supernovice jobexp table * Corrected maximum job level checking in @joblvup and @charjob git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@586 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 8e7f607ce..d975deaf5 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -5746,14 +5746,17 @@ int pc_setparam(struct map_session_data *sd,int type,int val)
pc_heal(sd, sd->status.max_hp, sd->status.max_sp);
break;
case SP_JOBLEVEL:
- if (sd->status.class == 0)
+ if (s_class.job == 0)
up_level -= 40;
- if ((sd->status.class == 23) || (sd->status.class >= 4001 && sd->status.class <= 4022))
+ // super novices can go up to 99 [celest]
+ else if (s_class.job == 23)
+ up_level += 49;
+ else if (sd->status.class >= 4008 && sd->status.class <= 4022)
up_level += 20;
if (val >= sd->status.job_level) {
if (val > up_level)val = up_level;
sd->status.skill_point += (val-sd->status.job_level);
- sd->status.job_level = val;
+ sd->status.job_level = val;
sd->status.job_exp = 0;
clif_updatestatus(sd, SP_JOBLEVEL);
clif_updatestatus(sd, SP_NEXTJOBEXP);