Skip to content

Commit

Permalink
fix: ZZZ timezone error
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-Joker committed Sep 27, 2024
1 parent 1e76f0b commit bef95ce
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Starward/Services/Gacha/ZZZGachaService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ public Dictionary<int, ZZZGachaInfo> GetItemsInfo()
}



public override (List<GachaTypeStats> GachaStats, List<GachaLogItemEx> ItemStats) GetGachaTypeStats(long uid)
{
var statsList = new List<GachaTypeStats>();
Expand Down Expand Up @@ -338,10 +337,10 @@ public UIGF40Game() { }
public UIGF40Game(long uid, List<ZZZGachaItem> list)
{
this.uid = uid;
timezone = uid.ToString().FirstOrDefault() switch
timezone = uid.ToString().Length == 8 ? 8 : uid.ToString()[..2] switch
{
'6' => -5,
'7' => 1,
"10" => -5,
"15" => 1,
_ => 8,
};
lang = list.FirstOrDefault()?.Lang ?? "";
Expand Down

0 comments on commit bef95ce

Please sign in to comment.