forked from MagicBane/Server
Starting to whittle away at initmob method.
This commit is contained in:
@@ -246,12 +246,6 @@ public class Mob extends AbstractIntelligenceAgent {
|
|||||||
Logger.error(e + " " + this.dbID);
|
Logger.error(e + " " + this.dbID);
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
|
||||||
initializeMob(false, false, this.isPlayerGuard);
|
|
||||||
} catch (Exception e) {
|
|
||||||
Logger.error("Mobile:" + this.dbID + ": " + e);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void serializeMobForClientMsgOtherPlayer(Mob mob, ByteBufferWriter writer) throws SerializationException {
|
public static void serializeMobForClientMsgOtherPlayer(Mob mob, ByteBufferWriter writer) throws SerializationException {
|
||||||
@@ -1888,10 +1882,13 @@ public class Mob extends AbstractIntelligenceAgent {
|
|||||||
NPCManager.slotCharacterInBuilding(this);
|
NPCManager.slotCharacterInBuilding(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
initializeMob(false, false, this.isPlayerGuard);
|
||||||
|
|
||||||
// Initialize inventory
|
// Initialize inventory
|
||||||
|
|
||||||
this.charItemManager = new CharacterItemManager(this);
|
this.charItemManager = new CharacterItemManager(this);
|
||||||
this.loadInventory();
|
this.loadInventory();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (this.equipmentSetID != 0)
|
if (this.equipmentSetID != 0)
|
||||||
this.equip = MobBase.loadEquipmentSet(this.equipmentSetID);
|
this.equip = MobBase.loadEquipmentSet(this.equipmentSetID);
|
||||||
|
|||||||
Reference in New Issue
Block a user