Rename and clean up MapleMonster
This commit is contained in:
@@ -27,7 +27,7 @@ import client.Character;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
import server.life.LifeFactory;
|
||||
import server.life.MapleMonster;
|
||||
import server.life.Monster;
|
||||
|
||||
public class CakeCommand extends Command {
|
||||
{
|
||||
@@ -37,7 +37,7 @@ public class CakeCommand extends Command {
|
||||
@Override
|
||||
public void execute(Client c, String[] params) {
|
||||
Character player = c.getPlayer();
|
||||
MapleMonster monster = LifeFactory.getMonster(9400606);
|
||||
Monster monster = LifeFactory.getMonster(9400606);
|
||||
if (params.length == 1) {
|
||||
double mobHp = Double.parseDouble(params[0]);
|
||||
int newHp = (mobHp <= 0) ? Integer.MAX_VALUE : ((mobHp > Integer.MAX_VALUE) ? Integer.MAX_VALUE : (int) mobHp);
|
||||
|
||||
@@ -28,7 +28,7 @@ import client.Client;
|
||||
import client.command.Command;
|
||||
import net.server.channel.Channel;
|
||||
import server.life.LifeFactory;
|
||||
import server.life.MapleMonster;
|
||||
import server.life.Monster;
|
||||
import server.maps.MapleMap;
|
||||
import tools.DatabaseConnection;
|
||||
|
||||
@@ -60,7 +60,7 @@ public class PmobCommand extends Command {
|
||||
int ypos = checkpos.y;
|
||||
int fh = player.getMap().getFootholds().findBelow(checkpos).getId();
|
||||
|
||||
MapleMonster mob = LifeFactory.getMonster(mobId);
|
||||
Monster mob = LifeFactory.getMonster(mobId);
|
||||
if (mob != null && !mob.getName().equals("MISSINGNO")) {
|
||||
mob.setPosition(checkpos);
|
||||
mob.setCy(ypos);
|
||||
|
||||
Reference in New Issue
Block a user