Explore tools roulette implemented

This commit is contained in:
xeon 2024-02-10 03:56:31 +03:00
parent 77956be694
commit c1b5f11fe6
3 changed files with 65 additions and 4 deletions

View file

@ -28,4 +28,7 @@ internal class FormationController : Controller
}
},
});
[NetEvent(MessageId.FormationAttrRequest)]
public ResponseMessage OnFormationAttrRequest() => Response(MessageId.FormationAttrResponse, new FormationAttrResponse());
}

View file

@ -0,0 +1,60 @@
using GameServer.Controllers.Attributes;
using GameServer.Controllers.Event;
using GameServer.Network;
using GameServer.Network.Messages;
using Protocol;
namespace GameServer.Controllers;
internal class RouletteController : Controller
{
public RouletteController(PlayerSession session) : base(session)
{
// RouletteController.
}
[GameEvent(GameEventType.EnterGame)]
public async Task OnEnterGame()
{
await Session.Push(MessageId.ExploreToolAllNotify, new ExploreToolAllNotify
{
SkillList = { 1001, 1004, 1003 },
ExploreSkill = 1001
});
await Session.Push(MessageId.ExploreSkillRouletteUpdateNotify, new ExploreSkillRouletteUpdateNotify
{
RouletteInfo =
{
new ExploreSkillRoulette
{
SkillIds = {1001, 1004, 1003, 0, 0, 0, 0, 0},
},
new ExploreSkillRoulette
{
SkillIds = {1001, 1004, 1003, 0, 0, 0, 0, 0},
}
}
});
}
[NetEvent(MessageId.VisionExploreSkillSetRequest)]
public async Task<ResponseMessage> OnVisionExploreSkillSetRequest(VisionExploreSkillSetRequest request)
{
await Session.Push(MessageId.VisionSkillChangeNotify, new VisionSkillChangeNotify
{
EntityId = 1,
VisionSkillInfos =
{
new VisionSkillInformation
{
SkillId = request.SkillId
}
}
});
return Response(MessageId.VisionExploreSkillSetResponse, new VisionExploreSkillSetResponse
{
SkillId = request.SkillId
});
}
}

View file

@ -70,12 +70,10 @@ internal class WorldController : Controller
{
new VisionSkillInformation
{
SkillId = 1302001,
Level = 1,
Quality = 1,
SkillId = 1001
}
}
}
},
},
new EntityComponentPb
{