feature(serenitea pot): Implementation of enter

Ugly hard code
This commit is contained in:
Yazawazi
2022-05-14 03:20:20 +08:00
committed by Melledy
parent 19ee983c08
commit 95a062123f
7 changed files with 245 additions and 0 deletions

View File

@@ -87,6 +87,9 @@ public class Player {
private Integer widgetId;
private Set<Integer> realmList;
private Integer currentRealmId;
@Transient private long nextGuid = 0;
@Transient private int peerId;
@Transient private World world;
@@ -313,6 +316,31 @@ public class Player {
this.widgetId = widgetId;
}
public Set<Integer> getRealmList() {
return realmList;
}
public void setRealmList(Set<Integer> realmList) {
this.realmList = realmList;
}
public void addRealmList(int realmId) {
if (this.realmList == null) {
this.realmList = new HashSet<>();
} else if (this.realmList.contains(realmId)) {
return;
}
this.realmList.add(realmId);
}
public Integer getCurrentRealmId() {
return currentRealmId;
}
public void setCurrentRealmId(Integer currentRealmId) {
this.currentRealmId = currentRealmId;
}
public Position getPos() {
return pos;
}
@@ -1187,6 +1215,8 @@ public class Player {
session.send(new PacketServerCondMeetQuestListUpdateNotify(this));
session.send(new PacketAllWidgetDataNotify(this));
session.send(new PacketWidgetGadgetAllDataNotify());
session.send(new PacketPlayerHomeCompInfoNotify(this));
session.send(new PacketHomeComfortInfoNotify(this));
getTodayMoonCard(); // The timer works at 0:0, some users log in after that, use this method to check if they have received a reward today or not. If not, send the reward.