Improvements on loot system

Loot icon
Loot system messages
This commit is contained in:
CharonInferar
2014-04-16 17:18:59 +02:00
parent 37dc1a45c2
commit b36081e630
11 changed files with 102 additions and 107 deletions
@@ -53,7 +53,7 @@ import engine.resources.scene.Planet;
import engine.resources.scene.Point3D;
import engine.resources.scene.Quaternion;
@Persistent(version=8)
@Persistent(version=9)
public class TangibleObject extends SWGObject {
// TODO: Thread safety
@@ -80,9 +80,14 @@ public class TangibleObject extends SWGObject {
//private TreeSet<TreeMap<String,Integer>> lootSpecification = new TreeSet<TreeMap<String,Integer>>();
private List<LootGroup> lootGroups = new ArrayList<LootGroup>();
private boolean looted = false;
private boolean lootLock = false;
private boolean creditRelieved = false;
@NotPersistent
private boolean looted = false; // These 4 should not need to be persisted, since a looted corpse will get wiped with server restart
@NotPersistent
private boolean lootLock = false;
@NotPersistent
private boolean creditRelieved = false;
@NotPersistent
private boolean lootItem = false;
private String serialNumber;
@@ -486,6 +491,14 @@ public class TangibleObject extends SWGObject {
this.lootLock = lootLock;
}
public boolean isLootItem() {
return lootItem;
}
public void setLootItem(boolean lootItem) {
this.lootItem = lootItem;
}
public boolean isCreditRelieved() {
return creditRelieved;
}