mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-10-18 08:02:53 -04:00
Loot window added
Loot window implemented Loot info effect added
This commit is contained in:
@@ -39,6 +39,7 @@ public class LootRollSession {
|
||||
private String SessionID; // leaderName-SystemTime
|
||||
private boolean sessionValid;
|
||||
private GroupObject playerGroup;
|
||||
private CreatureObject requester;
|
||||
private List<TangibleObject> droppedItems;
|
||||
private Planet sessionPlanet;
|
||||
private List<String> errorMessages;
|
||||
@@ -80,6 +81,7 @@ public class LootRollSession {
|
||||
droppedItems = new ArrayList<TangibleObject>();
|
||||
errorMessages = new ArrayList<String>();
|
||||
sessionPlanet = requester.getPlanet();
|
||||
this.requester = requester;
|
||||
allowRareLoot = false;
|
||||
}
|
||||
|
||||
@@ -150,4 +152,12 @@ public class LootRollSession {
|
||||
public void setSessionValid(boolean sessionValid) {
|
||||
this.sessionValid = sessionValid;
|
||||
}
|
||||
|
||||
public CreatureObject getRequester() {
|
||||
return requester;
|
||||
}
|
||||
|
||||
public void setRequester(CreatureObject requester) {
|
||||
this.requester = requester;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ import engine.resources.scene.Planet;
|
||||
import engine.resources.scene.Point3D;
|
||||
import engine.resources.scene.Quaternion;
|
||||
|
||||
@Persistent(version=7)
|
||||
@Persistent(version=8)
|
||||
public class TangibleObject extends SWGObject {
|
||||
|
||||
// TODO: Thread safety
|
||||
@@ -82,6 +82,7 @@ public class TangibleObject extends SWGObject {
|
||||
|
||||
private boolean looted = false;
|
||||
private boolean lootLock = false;
|
||||
private boolean creditRelieved = false;
|
||||
|
||||
private String serialNumber;
|
||||
|
||||
@@ -485,6 +486,15 @@ public class TangibleObject extends SWGObject {
|
||||
this.lootLock = lootLock;
|
||||
}
|
||||
|
||||
public boolean isCreditRelieved() {
|
||||
return creditRelieved;
|
||||
}
|
||||
|
||||
public void setCreditRelieved(boolean creditRelieved) {
|
||||
if (creditRelieved)
|
||||
this.creditRelieved = creditRelieved; // only allow one state change to prevent hacking
|
||||
}
|
||||
|
||||
public String getSerialNumber() {
|
||||
return getStringAttribute("serial_number");
|
||||
}
|
||||
@@ -532,5 +542,4 @@ public class TangibleObject extends SWGObject {
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user