mirror of
https://github.com/sebastian-heinz/Arrowgene.DragonsDogmaOnline
synced 2026-08-03 11:12:41 -04:00
- Fixed a bug related to secret augments. - Fixed HS custom skill relative ids - Fixed an issue with SL job master quest that overwrote the alchemist quest - Fixed an issue with one of the seeker augments have no target. - Fixed an issue where targets for blood orb enemies was incorrectly set during parsing. - Fixed an issue with the migration where the ability cost is not refunded properly for cross job augments.
39 lines
1.4 KiB
C#
39 lines
1.4 KiB
C#
using Arrowgene.Ddon.Server;
|
|
using Arrowgene.Ddon.Shared.Entity.PacketStructure;
|
|
using Arrowgene.Ddon.Shared.Entity.Structure;
|
|
using Arrowgene.Ddon.Shared.Model;
|
|
using Arrowgene.Logging;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
|
|
namespace Arrowgene.Ddon.GameServer.Handler
|
|
{
|
|
public class JobMasterGetJobMasterOrderProgressHandler : GameRequestPacketHandler<C2SJobMasterGetJobMasterOrderProgressReq, S2CJobMasterGetJobMasterOrderProgressRes>
|
|
{
|
|
private static readonly ServerLogger Logger = LogProvider.Logger<ServerLogger>(typeof(JobMasterGetJobMasterOrderProgressHandler));
|
|
|
|
public JobMasterGetJobMasterOrderProgressHandler(DdonGameServer server) : base(server)
|
|
{
|
|
}
|
|
|
|
public override S2CJobMasterGetJobMasterOrderProgressRes Handle(GameClient client, C2SJobMasterGetJobMasterOrderProgressReq request)
|
|
{
|
|
if (!client.Character.HasContentReleased(request.JobId.JobTrainingReleaseId()))
|
|
{
|
|
return new()
|
|
{
|
|
JobId = request.JobId
|
|
};
|
|
}
|
|
|
|
return new()
|
|
{
|
|
JobId = request.JobId,
|
|
ActiveJobOrderList = client.Character.JobMasterActiveOrders
|
|
.Where(x => x.Key == request.JobId)
|
|
.SelectMany(x => x.Value)
|
|
.ToList()
|
|
};
|
|
}
|
|
}
|
|
}
|