mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-25 23:07:50 +00:00
Update classes to match protos
This commit is contained in:
parent
d575d1ccea
commit
c096d255fd
@ -367,7 +367,7 @@ public class BattlePassManager extends BasePlayerDataManager {
|
||||
.setEndTime(2059483200)
|
||||
.setIsViewed(this.isViewed())
|
||||
.setUnlockStatus(this.isPaid() ? BattlePassUnlockStatus.BATTLE_PASS_UNLOCK_STATUS_PAID : BattlePassUnlockStatus.BATTLE_PASS_UNLOCK_STATUS_FREE)
|
||||
.setJPFMGBEBBBJ(2) // Not bought on Playstation.
|
||||
.setUnk2700ODHAAHEPFAG(2) // Not bought on Playstation.
|
||||
.setCurCyclePoints(this.getCyclePoints())
|
||||
.setCurCycle(BattlePassCycle.newBuilder()
|
||||
.setBeginTime(0)
|
||||
|
@ -356,7 +356,6 @@ public class GameMainQuest {
|
||||
.setParentQuestId(getParentQuestId())
|
||||
.setIsFinished(isFinished());
|
||||
|
||||
|
||||
proto.setParentQuestState(getState().getValue())
|
||||
.setCutsceneEncryptionKey(QuestManager.getQuestKey(parentQuestId));
|
||||
for (GameQuest quest : this.getChildQuests().values()) {
|
||||
|
@ -26,7 +26,13 @@ public class HandlerMusicGameSettleReq extends PacketHandler {
|
||||
var handler = (MusicGameActivityHandler) playerData.get().getActivityHandler();
|
||||
boolean isNewRecord = false;
|
||||
// check if custom beatmap
|
||||
if(req.getMusicShareId() == 0){
|
||||
|
||||
// TODO: PROTO IS OBFUSCATED, NEED TO GET PROPER VALUES.
|
||||
// Discovered: 23/08/2022.
|
||||
// Probably was an issue in 2.8 but was discovered in 3.0 port.
|
||||
// - Benj
|
||||
|
||||
/*if(req.getMusicShareId() == 0){
|
||||
session.getPlayer().getActivityManager().triggerWatcher(
|
||||
WatcherTriggerType.TRIGGER_FLEUR_FAIR_MUSIC_GAME_REACH_SCORE,
|
||||
String.valueOf(req.getMusicBasicId()),
|
||||
@ -52,7 +58,7 @@ public class HandlerMusicGameSettleReq extends PacketHandler {
|
||||
}
|
||||
|
||||
|
||||
session.send(new PacketMusicGameSettleRsp(req.getMusicBasicId(), req.getMusicShareId(), isNewRecord));
|
||||
session.send(new PacketMusicGameSettleRsp(req.getMusicBasicId(), req.getMusicShareId(), isNewRecord));*/
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user