mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-08-02 03:15:52 -04:00
Improvements on loot system
Loot icon Loot system messages
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user