diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-01-17 00:40:26 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-01-17 00:40:26 +0300 |
commit | 428c65b5c8d000d1cf3b3540de5bd91124c76113 (patch) | |
tree | 9d93af42c22aa95d61a2c06e5f73786fdbca75d2 /src/map/pc.c | |
parent | 30b7aeb3fc9ccec754f404d8c7b73b80983388aa (diff) | |
download | plugin-428c65b5c8d000d1cf3b3540de5bd91124c76113.tar.gz plugin-428c65b5c8d000d1cf3b3540de5bd91124c76113.tar.bz2 plugin-428c65b5c8d000d1cf3b3540de5bd91124c76113.tar.xz plugin-428c65b5c8d000d1cf3b3540de5bd91124c76113.zip |
map: change exp table validation for only used classes.
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index fba2441..612393f 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -165,3 +165,19 @@ int epc_takeitem(struct map_session_data *sd __attribute__ ((unused)), } return 1; } + +void epc_validate_levels(void) +{ + int i; + for (i = 0; i < 7; i++) { + if (!pc->db_checkid(i)) continue; + if (i == JOB_WEDDING || i == JOB_XMAS || i == JOB_SUMMER) + continue; //Classes that do not need exp tables. + int j = pc->class2idx(i); + if (!pc->max_level[j][0]) + ShowWarning("Class %d does not has a base exp table.\n", i); + if (!pc->max_level[j][1]) + ShowWarning("Class %d does not has a job exp table.\n", i); + } + hookStop(); +} |