Force complete fate card quests since they are not handled yet

This commit is contained in:
Melledy
2025-11-14 19:23:19 -08:00
parent 9f4ae13f09
commit 139fe2cf27
4 changed files with 64 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
package emu.nebula.server.handlers;
import emu.nebula.net.NetHandler;
import emu.nebula.net.NetMsgId;
import emu.nebula.proto.TowerBookFateCardDetail.TowerBookFateCardDetailResp;
import emu.nebula.net.HandlerId;
import emu.nebula.data.GameData;
import emu.nebula.net.GameSession;
@HandlerId(NetMsgId.tower_book_fate_card_detail_req)
public class HandlerTowerBookFateCardDetailReq extends NetHandler {
@Override
public byte[] handle(GameSession session, byte[] message) throws Exception {
// Build response
var rsp = TowerBookFateCardDetailResp.newInstance();
for (int card : session.getPlayer().getProgress().getFateCards()) {
rsp.addCards(card);
}
for (var quest : GameData.getStarTowerBookFateCardQuestDataTable()) {
rsp.addQuests(quest.getId());
}
// Encode and send
return session.encodeMsg(NetMsgId.tower_book_fate_card_detail_succeed_ack, rsp);
}
}

View File

@@ -0,0 +1,17 @@
package emu.nebula.server.handlers;
import emu.nebula.net.NetHandler;
import emu.nebula.net.NetMsgId;
import emu.nebula.net.HandlerId;
import emu.nebula.net.GameSession;
@HandlerId(NetMsgId.vampire_talent_show_req)
public class HandlerVampireTalentShowReq extends NetHandler {
@Override
public byte[] handle(GameSession session, byte[] message) throws Exception {
// Encode and send
return session.encodeMsg(NetMsgId.vampire_talent_show_succeed_ack);
}
}