ma abyss & chapter 37 fix

This commit is contained in:
rafi1212122
2023-06-04 10:29:08 +07:00
parent 127dc1b345
commit 7c19038c3c
14 changed files with 441 additions and 1 deletions

View File

@@ -0,0 +1,30 @@
using Common.Resources.Proto;
using Common.Utils.ExcelReader;
namespace PemukulPaku.GameServer.Handlers
{
[PacketCmdId(CmdId.GetExBossInfoReq)]
internal class GetExBossInfoReqHandler : IPacketHandler
{
public void Handle(Session session, Packet packet)
{
GetExBossInfoRsp Rsp = new()
{
retcode = GetExBossInfoRsp.Retcode.Succ,
BossInfo = new()
{
EnterTimes = 0,
ScheduleId = 1,
MaxSweepLevel = 4
}
};
Rsp.BossInfo.RankId = PlayerLevelData.GetInstance().ExBossRankFromExp(session.Player.User.Exp);
foreach (ExBossMonsterDataExcel monsterData in ExBossMonsterData.GetInstance().All.Where(monster => monster.ConfigId == Rsp.BossInfo.RankId))
{
Rsp.BossInfo.BossIdLists.Add(new() { BossId = (uint)monsterData.BossId });
}
session.Send(Packet.FromProto(Rsp, CmdId.GetExBossInfoRsp));
}
}
}