diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index 768b897d..abe71aa8 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -231,7 +231,8 @@ public class Mob extends AbstractIntelligenceAgent { java.util.Date sqlDateTime; sqlDateTime = rs.getTimestamp("upgradeDate"); - if (sqlDateTime != null) upgradeDateTime = new DateTime(sqlDateTime); + if (sqlDateTime != null) + upgradeDateTime = new DateTime(sqlDateTime); else upgradeDateTime = null; // Submit upgrade job if NPC is currently set to rank. @@ -242,7 +243,8 @@ public class Mob extends AbstractIntelligenceAgent { this.setObjectTypeMask(MBServerStatics.MASK_MOB | this.getTypeMasks()); - if (this.mobBase != null && this.spawnTime == 0) this.spawnTime = this.mobBase.getSpawnTime(); + if (this.mobBase != null && this.spawnTime == 0) + this.spawnTime = this.mobBase.getSpawnTime(); this.bindLoc = new Vector3fImmutable(this.statLat, this.statAlt, this.statLon); @@ -254,7 +256,7 @@ public class Mob extends AbstractIntelligenceAgent { if (this.contract != null) { this.equipmentSetID = this.contract.getEquipmentSet(); - this.nameOverride = rs.getString("mob_name") + " the " + this.getContract().getName(); + this.nameOverride = this.getContract().getName(); } else { this.equipmentSetID = rs.getInt("equipmentSet"); this.nameOverride = rs.getString("mob_name"); diff --git a/src/engine/objects/NPC.java b/src/engine/objects/NPC.java index e7258cc2..6971a3eb 100644 --- a/src/engine/objects/NPC.java +++ b/src/engine/objects/NPC.java @@ -240,7 +240,7 @@ public class NPC extends AbstractCharacter { if (this.upgradeDateTime != null) submitUpgradeJob(); - this.name = rs.getString("npc_name"); + this.name = this.contract.getName(); this.nameOverride = rs.getString("npc_name"); }catch(Exception e){