Loot radial and power crystal items

Connected loot radial to corpse. Made powercrystal scripts.
Allowed the mobile scripts to drop loot now.
This commit is contained in:
CharonInferar
2014-04-10 04:22:54 +02:00
parent d776b52292
commit 221f9a93fc
33 changed files with 326 additions and 57 deletions
@@ -60,7 +60,7 @@ import engine.resources.scene.Planet;
import engine.resources.scene.Point3D;
import engine.resources.scene.Quaternion;
@Persistent(version=3)
@Persistent(version=4)
public class TangibleObject extends SWGObject {
// TODO: Thread safety
@@ -86,6 +86,8 @@ 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;
@NotPersistent
private TangibleObject killer = null;
@@ -463,6 +465,14 @@ public class TangibleObject extends SWGObject {
this.lootGroups.add(lootGroup);
}
public boolean isLooted() {
return looted;
}
public void setLooted(boolean looted) {
this.looted = looted;
}
@Override
public void sendBaselines(Client destination) {