mirror of
https://github.com/Melledy/LunarCore.git
synced 2026-02-04 15:05:07 +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;
|
public static final int CHALLENGE_ENTRANCE = 100000103;
|
||||||
|
|
||||||
// Rogue
|
// Rogue
|
||||||
|
public static final boolean ENABLE_ROGUE = false;
|
||||||
public static final int ROGUE_ENTRANCE = 801120102;
|
public static final int ROGUE_ENTRANCE = 801120102;
|
||||||
public static final int ROGUE_TALENT_POINT_ITEM_ID = 32;
|
public static final int ROGUE_TALENT_POINT_ITEM_ID = 32;
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package emu.lunarcore.server.packet.recv;
|
package emu.lunarcore.server.packet.recv;
|
||||||
|
|
||||||
|
import emu.lunarcore.GameConstants;
|
||||||
import emu.lunarcore.server.game.GameSession;
|
import emu.lunarcore.server.game.GameSession;
|
||||||
import emu.lunarcore.server.packet.CmdId;
|
import emu.lunarcore.server.packet.CmdId;
|
||||||
import emu.lunarcore.server.packet.Opcodes;
|
import emu.lunarcore.server.packet.Opcodes;
|
||||||
@@ -11,8 +12,11 @@ public class HandlerGetRogueInfoCsReq extends PacketHandler {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void handle(GameSession session, byte[] data) throws Exception {
|
public void handle(GameSession session, byte[] data) throws Exception {
|
||||||
session.send(CmdId.GetRogueInfoScRsp);
|
if (GameConstants.ENABLE_ROGUE) {
|
||||||
//session.send(new PacketGetRogueInfoScRsp(session.getPlayer()));
|
session.send(new PacketGetRogueInfoScRsp(session.getPlayer()));
|
||||||
|
} else {
|
||||||
|
session.send(CmdId.GetRogueInfoScRsp);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package emu.lunarcore.server.packet.recv;
|
package emu.lunarcore.server.packet.recv;
|
||||||
|
|
||||||
|
import emu.lunarcore.GameConstants;
|
||||||
import emu.lunarcore.server.game.GameSession;
|
import emu.lunarcore.server.game.GameSession;
|
||||||
import emu.lunarcore.server.packet.CmdId;
|
import emu.lunarcore.server.packet.CmdId;
|
||||||
import emu.lunarcore.server.packet.Opcodes;
|
import emu.lunarcore.server.packet.Opcodes;
|
||||||
@@ -11,7 +12,11 @@ public class HandlerGetRogueScoreRewardInfoCsReq extends PacketHandler {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void handle(GameSession session, byte[] data) throws Exception {
|
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;
|
package emu.lunarcore.server.packet.recv;
|
||||||
|
|
||||||
|
import emu.lunarcore.GameConstants;
|
||||||
import emu.lunarcore.server.game.GameSession;
|
import emu.lunarcore.server.game.GameSession;
|
||||||
import emu.lunarcore.server.packet.CmdId;
|
import emu.lunarcore.server.packet.CmdId;
|
||||||
import emu.lunarcore.server.packet.Opcodes;
|
import emu.lunarcore.server.packet.Opcodes;
|
||||||
@@ -11,7 +12,11 @@ public class HandlerGetRogueTalentInfoCsReq extends PacketHandler {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void handle(GameSession session, byte[] data) throws Exception {
|
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() {
|
public PacketGetRogueHandbookDataScRsp() {
|
||||||
super(CmdId.GetRogueHandbookDataScRsp);
|
super(CmdId.GetRogueHandbookDataScRsp);
|
||||||
|
|
||||||
|
/*
|
||||||
var handbook = RogueHandbookData.newInstance()
|
var handbook = RogueHandbookData.newInstance()
|
||||||
.setRogueCurrentVersion(1)
|
.setRogueCurrentVersion(1)
|
||||||
.setIsMiracleUnlock(true);
|
.setIsMiracleUnlock(true);
|
||||||
|
*/
|
||||||
|
|
||||||
var data = GetRogueHandbookDataScRsp.newInstance()
|
var data = GetRogueHandbookDataScRsp.newInstance();
|
||||||
.setHandbookInfo(handbook);
|
data.getMutableHandbookInfo();
|
||||||
|
|
||||||
this.setData(data);
|
this.setData(data);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user