mirror of
https://github.com/Melledy/LunarCore.git
synced 2025-12-16 07:14:58 +01:00
Add internal server setting to enable SU
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user