Rename and clean up MapleNPCStats
This commit is contained in:
@@ -285,7 +285,7 @@ public class LifeFactory {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static NPC getNPC(int nid) {
|
public static NPC getNPC(int nid) {
|
||||||
return new NPC(nid, new MapleNPCStats(DataTool.getString(nid + "/name", npcStringData, "MISSINGNO")));
|
return new NPC(nid, new NPCStats(DataTool.getString(nid + "/name", npcStringData, "MISSINGNO")));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String getNPCDefaultTalk(int nid) {
|
public static String getNPCDefaultTalk(int nid) {
|
||||||
|
|||||||
@@ -27,9 +27,9 @@ import server.maps.MapleMapObjectType;
|
|||||||
import tools.PacketCreator;
|
import tools.PacketCreator;
|
||||||
|
|
||||||
public class NPC extends AbstractLoadedLife {
|
public class NPC extends AbstractLoadedLife {
|
||||||
private final MapleNPCStats stats;
|
private final NPCStats stats;
|
||||||
|
|
||||||
public NPC(int id, MapleNPCStats stats) {
|
public NPC(int id, NPCStats stats) {
|
||||||
super(id);
|
super(id);
|
||||||
this.stats = stats;
|
this.stats = stats;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,13 +22,12 @@
|
|||||||
package server.life;
|
package server.life;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
* @author Matze
|
* @author Matze
|
||||||
*/
|
*/
|
||||||
public class MapleNPCStats {
|
public class NPCStats {
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
public MapleNPCStats(String name) {
|
public NPCStats(String name) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user