Skip to content

Commit

Permalink
fix gacha pity of zzz #964
Browse files Browse the repository at this point in the history
  • Loading branch information
Scighost committed Jul 18, 2024
1 parent cff04fa commit 28e8c99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Starward/Services/Gacha/ZZZGachaService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public override (List<GachaTypeStats> GachaStats, List<GachaLogItemEx> ItemStats
stats.Pity_5 = 0;
}
stats.Average_5 = (double)(stats.Count - stats.Pity_5) / stats.Count_5;
stats.Pity_4 = list.Count - 1 - list.FindLastIndex(x => x.RankType == 4);
stats.Pity_4 = list.Count - 1 - list.FindLastIndex(x => x.RankType == 3);

int pity_4 = 0;
foreach (var item in list)
Expand Down

0 comments on commit 28e8c99

Please sign in to comment.