diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-02-13 19:48:56 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-02-13 19:48:56 +0000 |
commit | 13c3b8e817abaddba678717d5428844607dbf487 (patch) | |
tree | 2d538dcfdc9c9394ea675416b679135c1bd1011d /src/map/pc.c | |
parent | 44ade8dfd6c775c9c2c0e47f049e2b99807ed3c1 (diff) | |
download | hercules-13c3b8e817abaddba678717d5428844607dbf487.tar.gz hercules-13c3b8e817abaddba678717d5428844607dbf487.tar.bz2 hercules-13c3b8e817abaddba678717d5428844607dbf487.tar.xz hercules-13c3b8e817abaddba678717d5428844607dbf487.zip |
- Made the NPC_BREAK* skills attack skills again, their chance of equipment breaking code was moved to skill_additional_effect.
- Added zeroing of skilltarget in skill_castend_id when skill fails.
- Now when the exp table does not has enough data to reach the max level specified, the max level will not be reduced to enable leveling through quests/scripts/gm-commands/etc.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5271 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index a19ff6538..11fe0d53c 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -8146,9 +8146,10 @@ int pc_readdb(void) //0: x, 1: x, 2: x: 3: x 4: 0 <- last valid value is at 3.
while ((i = max_level[job][type]-2) >= 0 && exp_table[job][type][i] <= 0)
max_level[job][type]--;
-
if (max_level[job][type] < max) {
- ShowError("pc_readdb: Specified max %d for job %d, but that job's exp table only goes up to level %d.\n", max, job, max_level[job][type]);
+ ShowWarning("pc_readdb: Specified max %d for job %d, but that job's exp table only goes up to level %d.\n", max, job, max_level[job][type]);
+ ShowNotice("(You may still reach lv %d through scripts/gm-commands)\n");
+ max_level[job][type] = max;
}
// ShowDebug("%s - Class %d: %d\n", type?"Job":"Base", job, max_level[job][type]);
for (i = 1; i < job_count; i++) {
@@ -8158,7 +8159,7 @@ int pc_readdb(void) continue;
}
memcpy(exp_table[job][type], exp_table[jobs[0]][type], sizeof(exp_table[0][0]));
- max_level[job][type] = max_level[jobs[0]][type];
+ max_level[job][type] = max;
// ShowDebug("%s - Class %d: %d\n", type?"Job":"Base", job, max_level[job][type]);
}
}
|