Add internal server setting to enable SU

This commit is contained in:
Melledy
2023-12-30 21:48:37 -08:00
parent 62fcdf63a9
commit 88e68481d8
5 changed files with 23 additions and 6 deletions

View File

@@ -53,6 +53,7 @@ public class GameConstants {
public static final int CHALLENGE_ENTRANCE = 100000103;
// Rogue
public static final boolean ENABLE_ROGUE = false;
public static final int ROGUE_ENTRANCE = 801120102;
public static final int ROGUE_TALENT_POINT_ITEM_ID = 32;

View File

@@ -1,5 +1,6 @@
package emu.lunarcore.server.packet.recv;
import emu.lunarcore.GameConstants;
import emu.lunarcore.server.game.GameSession;
import emu.lunarcore.server.packet.CmdId;
import emu.lunarcore.server.packet.Opcodes;
@@ -11,8 +12,11 @@ public class HandlerGetRogueInfoCsReq extends PacketHandler {
@Override
public void handle(GameSession session, byte[] data) throws Exception {
session.send(CmdId.GetRogueInfoScRsp);
//session.send(new PacketGetRogueInfoScRsp(session.getPlayer()));
if (GameConstants.ENABLE_ROGUE) {
session.send(new PacketGetRogueInfoScRsp(session.getPlayer()));
} else {
session.send(CmdId.GetRogueInfoScRsp);
}
}
}

View File

@@ -1,5 +1,6 @@
package emu.lunarcore.server.packet.recv;
import emu.lunarcore.GameConstants;
import emu.lunarcore.server.game.GameSession;
import emu.lunarcore.server.packet.CmdId;
import emu.lunarcore.server.packet.Opcodes;
@@ -11,7 +12,11 @@ public class HandlerGetRogueScoreRewardInfoCsReq extends PacketHandler {
@Override
public void handle(GameSession session, byte[] data) throws Exception {
session.send(new PacketGetRogueScoreRewardInfoScRsp(session.getPlayer()));
if (GameConstants.ENABLE_ROGUE) {
session.send(new PacketGetRogueScoreRewardInfoScRsp(session.getPlayer()));
} else {
session.send(CmdId.GetRogueScoreRewardInfoScRsp);
}
}
}

View File

@@ -1,5 +1,6 @@
package emu.lunarcore.server.packet.recv;
import emu.lunarcore.GameConstants;
import emu.lunarcore.server.game.GameSession;
import emu.lunarcore.server.packet.CmdId;
import emu.lunarcore.server.packet.Opcodes;
@@ -11,7 +12,11 @@ public class HandlerGetRogueTalentInfoCsReq extends PacketHandler {
@Override
public void handle(GameSession session, byte[] data) throws Exception {
session.send(new PacketGetRogueTalentInfoScRsp(session.getPlayer().getRogueManager()));
if (GameConstants.ENABLE_ROGUE) {
session.send(new PacketGetRogueTalentInfoScRsp(session.getPlayer().getRogueManager()));
} else {
session.send(CmdId.GetRogueTalentInfoScRsp);
}
}
}

View File

@@ -10,12 +10,14 @@ public class PacketGetRogueHandbookDataScRsp extends BasePacket {
public PacketGetRogueHandbookDataScRsp() {
super(CmdId.GetRogueHandbookDataScRsp);
/*
var handbook = RogueHandbookData.newInstance()
.setRogueCurrentVersion(1)
.setIsMiracleUnlock(true);
*/
var data = GetRogueHandbookDataScRsp.newInstance()
.setHandbookInfo(handbook);
var data = GetRogueHandbookDataScRsp.newInstance();
data.getMutableHandbookInfo();
this.setData(data);
}