Rename and clean up MapleJob

This commit is contained in:
P0nk
2021-09-09 21:21:04 +02:00
parent ee503eedce
commit 3e1b5b93d5
52 changed files with 283 additions and 283 deletions

View File

@@ -25,7 +25,7 @@ package client.command.commands.gm2;
import client.Character;
import client.Client;
import client.MapleJob;
import client.Job;
import client.command.Command;
public class JobCommand extends Command {
@@ -43,7 +43,7 @@ public class JobCommand extends Command {
return;
}
player.changeJob(MapleJob.getById(jobid));
player.changeJob(Job.getById(jobid));
player.equipChanged();
} else if (params.length == 2) {
Character victim = c.getWorldServer().getPlayerStorage().getCharacterByName(params[0]);
@@ -55,7 +55,7 @@ public class JobCommand extends Command {
return;
}
victim.changeJob(MapleJob.getById(jobid));
victim.changeJob(Job.getById(jobid));
player.equipChanged();
} else {
player.message("Player '" + params[0] + "' could not be found.");

View File

@@ -48,7 +48,7 @@ public class MaxSkillCommand extends Command {
} catch (NullPointerException npe) { }
}
if (player.getJob().isA(MapleJob.ARAN1) || player.getJob().isA(MapleJob.LEGEND)) {
if (player.getJob().isA(Job.ARAN1) || player.getJob().isA(Job.LEGEND)) {
Skill skill = SkillFactory.getSkill(5001005);
player.changeSkillLevel(skill, (byte) -1, -1, -1);
} else {

View File

@@ -49,7 +49,7 @@ public class ResetSkillCommand extends Command {
}
}
if (player.getJob().isA(MapleJob.ARAN1) || player.getJob().isA(MapleJob.LEGEND)) {
if (player.getJob().isA(Job.ARAN1) || player.getJob().isA(Job.LEGEND)) {
Skill skill = SkillFactory.getSkill(5001005);
player.changeSkillLevel(skill, (byte) -1, -1, -1);
} else {