mirror of
https://github.com/rafi1212122/PemukulPaku
synced 2025-12-14 21:04:36 +01:00
ma abyss & chapter 37 fix
This commit is contained in:
30
GameServer/Handlers/GetExBossInfoReqHandler.cs
Normal file
30
GameServer/Handlers/GetExBossInfoReqHandler.cs
Normal 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));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user