using EggLink.DanhengServer.GameServer.Game.ChessRogue;
using EggLink.DanhengServer.Kcp;
using EggLink.DanhengServer.Proto;

namespace EggLink.DanhengServer.GameServer.Server.Packet.Send.ChessRogue;

public class PacketEnhanceChessRogueBuffScRsp : BasePacket
{
    public PacketEnhanceChessRogueBuffScRsp(ChessRogueInstance rogue, uint buffId) : base(
        CmdIds.EnhanceChessRogueBuffScRsp)
    {
        var proto = new EnhanceChessRogueBuffScRsp
        {
            IsSucc = true,
            RogueBuff = new RogueCommonBuff
            {
                BuffId = buffId,
                BuffLevel = 2
            },
            BuffEnhanceInfo = rogue.ToChessEnhanceInfo()
        };

        SetData(proto);
    }
}