Explore tools roulette implemented
This commit is contained in:
parent
77956be694
commit
c1b5f11fe6
3 changed files with 65 additions and 4 deletions
|
@ -28,4 +28,7 @@ internal class FormationController : Controller
|
|||
}
|
||||
},
|
||||
});
|
||||
|
||||
[NetEvent(MessageId.FormationAttrRequest)]
|
||||
public ResponseMessage OnFormationAttrRequest() => Response(MessageId.FormationAttrResponse, new FormationAttrResponse());
|
||||
}
|
||||
|
|
60
GameServer/Controllers/RouletteController.cs
Normal file
60
GameServer/Controllers/RouletteController.cs
Normal 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
|
||||
});
|
||||
}
|
||||
}
|
|
@ -70,12 +70,10 @@ internal class WorldController : Controller
|
|||
{
|
||||
new VisionSkillInformation
|
||||
{
|
||||
SkillId = 1302001,
|
||||
Level = 1,
|
||||
Quality = 1,
|
||||
SkillId = 1001
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
new EntityComponentPb
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue