mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-09-28 13:12:54 -04:00
Merge branch 'master' of https://github.com/ProjectSWGCore/NGECore2
This commit is contained in:
@@ -119,7 +119,7 @@ public class PlayerObject extends IntangibleObject implements Serializable {
|
||||
baseline.put("lifetimeGcwPoints", (long) 0);
|
||||
baseline.put("lifetimePvpKills", 0);
|
||||
baseline.put("collections", new BitSet());
|
||||
baseline.put("17", new SWGList<Byte>(this, 3, 17, false)); // Misc ints (2 ints in tutorial, 5 bytes other times...)
|
||||
baseline.put("guildRanks", new BitSet()); //"17", new SWGList<Byte>(this, 3, 17, false)); // Misc ints (2 ints in tutorial, 5 bytes other times...)
|
||||
baseline.put("showHelmet", true);
|
||||
baseline.put("showBackpack", true);
|
||||
return baseline;
|
||||
@@ -401,6 +401,16 @@ public class PlayerObject extends IntangibleObject implements Serializable {
|
||||
return ((BitSet) getBaseline(3).get("collections")).length();
|
||||
}
|
||||
|
||||
public boolean getGuildRank(int slotIndex) {
|
||||
return ((BitSet) getBaseline(3).get("guildRanks")).get(slotIndex);
|
||||
}
|
||||
|
||||
public void toggleGuildRank(int slotIndex) {
|
||||
BitSet guildRanks = (BitSet) getBaseline(3).get("guildRanks");
|
||||
guildRanks.set(slotIndex, !guildRanks.get(slotIndex));
|
||||
getBaseline(3).set("guildRanks", guildRanks);
|
||||
}
|
||||
|
||||
public boolean isShowingHelmet() {
|
||||
return (boolean) getBaseline(3).get("showHelmet");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user