mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-08-01 02:16:15 -04:00
Added group buffs
This commit is contained in:
@@ -41,7 +41,7 @@ import engine.clientdata.ClientFileManager;
|
||||
import engine.clientdata.visitors.DatatableVisitor;
|
||||
import engine.resources.common.CRC;
|
||||
|
||||
@Persistent(version=6)
|
||||
@Persistent(version=7)
|
||||
public class Buff implements IListObject {
|
||||
|
||||
@NotPersistent
|
||||
@@ -68,6 +68,7 @@ public class Buff implements IListObject {
|
||||
@NotPersistent
|
||||
private ScheduledFuture<?> removalTask;
|
||||
private int stacks = 1;
|
||||
private long groupBufferId;
|
||||
|
||||
public Buff(String buffName, long ownerId) {
|
||||
|
||||
@@ -417,5 +418,17 @@ public class Buff implements IListObject {
|
||||
public void setStacks(int stacks) {
|
||||
this.stacks = stacks;
|
||||
}
|
||||
|
||||
public boolean isGroupBuff() {
|
||||
return effect1Name.equals("group");
|
||||
}
|
||||
|
||||
public long getGroupBufferId() {
|
||||
return groupBufferId;
|
||||
}
|
||||
|
||||
public void setGroupBufferId(long groupBufferId) {
|
||||
this.groupBufferId = groupBufferId;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user