Slots will be derived not stored.
This commit is contained in:
@@ -36,7 +36,6 @@ import java.sql.SQLException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
import java.util.concurrent.locks.ReentrantReadWriteLock;
|
||||
|
||||
@@ -102,8 +101,6 @@ public class Mob extends AbstractIntelligenceAgent {
|
||||
private DateTime upgradeDateTime = null;
|
||||
private boolean lootSync = false;
|
||||
|
||||
public int slot = -1;
|
||||
|
||||
/**
|
||||
* No Id Constructor
|
||||
*/
|
||||
@@ -278,8 +275,6 @@ public class Mob extends AbstractIntelligenceAgent {
|
||||
if (rs.getString("fsm").length() > 1)
|
||||
this.BehaviourType = MobBehaviourType.valueOf(rs.getString("fsm"));
|
||||
|
||||
this.slot = rs.getInt("slot");
|
||||
|
||||
} catch (Exception e) {
|
||||
Logger.error(e + " " + this.dbID );
|
||||
}
|
||||
|
||||
@@ -94,7 +94,6 @@ public class NPC extends AbstractCharacter {
|
||||
private String nameOverride = "";
|
||||
private int equipmentSetID = 0;
|
||||
public int runeSetID = 0;
|
||||
public int slot = -1;
|
||||
private Regions region = null;
|
||||
|
||||
public Vector3fImmutable inBuildingLoc = Vector3fImmutable.ZERO;
|
||||
@@ -224,8 +223,6 @@ public class NPC extends AbstractCharacter {
|
||||
this.statAlt = rs.getFloat("npc_spawnY");
|
||||
this.statLon = rs.getFloat("npc_spawnZ");
|
||||
|
||||
this.slot = rs.getInt("npc_slot");
|
||||
|
||||
if (this.contract != null) {
|
||||
this.symbol = this.contract.getIconID();
|
||||
this.modTypeTable = this.contract.getNPCModTypeTable();
|
||||
@@ -909,10 +906,7 @@ public class NPC extends AbstractCharacter {
|
||||
BuildingLocation buildingLocation = null;
|
||||
|
||||
//-1 slot means no slot available in building.
|
||||
if (this.slot != -1)
|
||||
putSlot = this.slot;
|
||||
else
|
||||
putSlot = NPC.getBuildingSlot(this);
|
||||
putSlot = NPC.getBuildingSlot(this);
|
||||
|
||||
buildingLocation = buildingModel.getSlotLocation(putSlot);
|
||||
|
||||
@@ -1556,7 +1550,6 @@ public class NPC extends AbstractCharacter {
|
||||
if (!DbManager.NPCQueries.UPDATE_SLOT(npc, slot))
|
||||
return false;
|
||||
|
||||
npc.slot = slot;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user