From 3a6cb469a6b8ad2e9ff5d27598613e3ce8437d3c Mon Sep 17 00:00:00 2001 From: SELEKCJONER Date: Sun, 17 Nov 2024 11:58:12 +0100 Subject: [PATCH] Fill Gacha exclusion list Adds all unobtainable characters to exclusion list in exec gacha cs which makes rates a lot more like in official sick pulls mode till has them --- .../LobbyServer/Msgs/Gacha/CheckGachaDailyEvent.cs | 12 ++++++++++-- EpinelPS/LobbyServer/Msgs/Gacha/ExecGacha.cs | 9 +++++++-- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/EpinelPS/LobbyServer/Msgs/Gacha/CheckGachaDailyEvent.cs b/EpinelPS/LobbyServer/Msgs/Gacha/CheckGachaDailyEvent.cs index cac347c..83333db 100644 --- a/EpinelPS/LobbyServer/Msgs/Gacha/CheckGachaDailyEvent.cs +++ b/EpinelPS/LobbyServer/Msgs/Gacha/CheckGachaDailyEvent.cs @@ -8,12 +8,20 @@ namespace EpinelPS.LobbyServer.Msgs.Gacha protected override async Task HandleAsync() { var req = await ReadData(); - var response = new ResCheckDailyFreeGacha(); // TODO implement response.FreeCount = 1; - response.EventData = new NetEventData() { Id = 1 }; + response.EventData = new NetEventData() + { + Id = 70070, + EventSystemType = 6, + EventVisibleDate = DateTime.UtcNow.Subtract(TimeSpan.FromDays(7)).Ticks, + EventStartDate = DateTime.UtcNow.Subtract(TimeSpan.FromDays(1)).Ticks, + EventEndDate = DateTime.Now.AddDays(20).Ticks, + EventDisableDate = DateTime.Now.AddDays(20).Ticks, + }; + // this is net event data i think it should be the same as in list events await WriteDataAsync(response); } diff --git a/EpinelPS/LobbyServer/Msgs/Gacha/ExecGacha.cs b/EpinelPS/LobbyServer/Msgs/Gacha/ExecGacha.cs index 44b7304..e9cbbde 100644 --- a/EpinelPS/LobbyServer/Msgs/Gacha/ExecGacha.cs +++ b/EpinelPS/LobbyServer/Msgs/Gacha/ExecGacha.cs @@ -1,4 +1,9 @@ -using EpinelPS.Database; +//todo +//implement response.Reward +// and response.Currencies +//NetUserCurrencyData fields Type 9000 and Value 150 +//NetRewardData field Currency = new NetUserCurrencyData copy type and value from response.Currencies new NetUserCurrencyData +using EpinelPS.Database; using EpinelPS.StaticInfo; using EpinelPS.Utils; @@ -11,7 +16,7 @@ namespace EpinelPS.LobbyServer.Msgs.Gacha // Exclusion lists for sick pulls mode and normal mode 2500601 is the broken R rarity dorothy private static readonly List sickPullsExclusionList = new List { 2500601 }; // Add more IDs as needed - private static readonly List normalPullsExclusionList = new List { 2500601 }; // Add more IDs as needed + private static readonly List normalPullsExclusionList = new List { 2500601,422401,306201,399901,399902,399903,399904,201401,301501,112101,313201,319301,319401,320301,422601,426101,328301,328401,235101,235301,136101,339201,140001,140101,140201,580001,580101,580201,581001,581101,581201,582001,582101,582201,583001,583101,583201,583301,190101,290701 }; // Add more IDs as needed protected override async Task HandleAsync() {