mirror of
https://github.com/MikuLeaks/KianaBH3.git
synced 2025-12-16 06:44:41 +01:00
fix: valk tutorial stage
This commit is contained in:
@@ -2,6 +2,7 @@ using Google.Protobuf.Collections;
|
||||
using KianaBH.Data;
|
||||
using KianaBH.KcpSharp;
|
||||
using KianaBH.Proto;
|
||||
using KianaBH.Util.Extensions;
|
||||
|
||||
namespace KianaBH.GameServer.Server.Packet.Send.Activity;
|
||||
|
||||
@@ -19,30 +20,19 @@ public class PacketGeneralActivityGetMainInfoRsp : BasePacket
|
||||
GeneralBasicInfo = new GeneralActivityBasicInfo
|
||||
{
|
||||
ActivityId = activityId,
|
||||
ScheduleId = series?.Series ?? 0,
|
||||
SeriesActivityId ={ activityId }
|
||||
//ScheduleId = series?.Series ?? 0,
|
||||
//SeriesActivityId ={ activityId }
|
||||
}
|
||||
};
|
||||
|
||||
GameData.GeneralActivityStageGroupData
|
||||
.TryGetValue((int)activityId, out var activityStage);
|
||||
|
||||
if (activityStage != null)
|
||||
activity.ActivityStage = new GeneralActivityStage
|
||||
{
|
||||
activity.ActivityStage = new GeneralActivityStage
|
||||
{
|
||||
StageGroupScheduleList =
|
||||
{
|
||||
activityStage.Select(x => new GeneralActivityStageGroupScheduleInfo
|
||||
{
|
||||
BeginTime = 1593223200,
|
||||
EndTime = 1913140799,
|
||||
StageGroupId = x.StageGroupId
|
||||
})
|
||||
|
||||
}
|
||||
};
|
||||
}
|
||||
EnterTimes = 1,
|
||||
ExchangeTimes = 1,
|
||||
};
|
||||
|
||||
|
||||
|
||||
return activity;
|
||||
});
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
using System.Security.Cryptography;
|
||||
using KianaBH.Data;
|
||||
using KianaBH.KcpSharp;
|
||||
using KianaBH.Proto;
|
||||
@@ -36,6 +37,13 @@ public class PacketGeneralActivityGetScheduleRsp : BasePacket
|
||||
EndTime = time,
|
||||
});
|
||||
}
|
||||
proto.ScheduleList.Add(new GeneralActivityScheduleInfo
|
||||
{
|
||||
ActivityId = 50000006,
|
||||
SettleTime = time,
|
||||
EndTime = time,
|
||||
EndDayTime = time
|
||||
});
|
||||
|
||||
SetData(proto);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
using Google.Protobuf.Collections;
|
||||
using KianaBH.KcpSharp;
|
||||
using KianaBH.Proto;
|
||||
|
||||
namespace KianaBH.GameServer.Server.Packet.Send.Activity;
|
||||
|
||||
public class PacketGeneralActivityGetScoreRewardInfoRsp : BasePacket
|
||||
{
|
||||
public PacketGeneralActivityGetScoreRewardInfoRsp(RepeatedField<uint> ActivityIdList) : base(CmdIds.GeneralActivityGetScoreRewardInfoRsp)
|
||||
{
|
||||
var proto = new GeneralActivityGetScoreRewardInfoRsp
|
||||
{
|
||||
ScoreInfoList =
|
||||
{
|
||||
ActivityIdList?.Select(id => new GeneralActivityScoreRewardInfo
|
||||
{
|
||||
ActivityId = id,
|
||||
CurScore = 0
|
||||
})
|
||||
}
|
||||
};
|
||||
|
||||
SetData(proto);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user