From 34e4b1c3f8b879012d7d5939d2ffcbdd33170e19 Mon Sep 17 00:00:00 2001 From: Melledy <121644117+Melledy@users.noreply.github.com> Date: Sat, 8 Nov 2025 06:04:56 -0800 Subject: [PATCH] Force unlock all cataclysm survivor levels --- .../java/emu/nebula/game/player/Player.java | 20 ++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/src/main/java/emu/nebula/game/player/Player.java b/src/main/java/emu/nebula/game/player/Player.java index 9239d0a..6b482cd 100644 --- a/src/main/java/emu/nebula/game/player/Player.java +++ b/src/main/java/emu/nebula/game/player/Player.java @@ -36,7 +36,7 @@ import emu.nebula.proto.Public.Story; import emu.nebula.proto.Public.WorldClass; import emu.nebula.proto.Public.WorldClassRewardState; import emu.nebula.proto.Public.Title; - +import emu.nebula.proto.Public.VampireSurvivorLevel; import lombok.Getter; import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.RepeatedInt; @@ -620,7 +620,6 @@ public class Player implements GameDatabaseObject { proto.addDailyActiveIds(id); } - state.getMutableWorldClassReward() .setFlag(this.getQuestManager().getLevelRewards().toBigEndianByteArray()); @@ -652,10 +651,21 @@ public class Player implements GameDatabaseObject { proto.addRglPassedIds(towerData.getId()); } - // Extra - proto.getMutableVampireSurvivorRecord() - .getMutableSeason(); + // Force unlock all vampire survivor records + var vsProto = proto.getMutableVampireSurvivorRecord(); + vsProto.getMutableSeason(); + + for (var vsData : GameData.getVampireSurvivorDataTable()) { + var level = VampireSurvivorLevel.newInstance() + .setId(vsData.getId()) + .setScore(0) + .setPassed(true); + + vsProto.addRecords(level); + } + + // Extra proto.getMutableAgent(); proto.getMutablePhone();