Skip to content

Commit

Permalink
fix the progress background of gacha pity item #822
Browse files Browse the repository at this point in the history
  • Loading branch information
Scighost committed Jul 11, 2024
1 parent 60130b7 commit 8d701b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public object Convert(object value, Type targetType, object parameter, string la
var brush = new LinearGradientBrush { StartPoint = new Point(0, 0), EndPoint = new Point(1, 0), Opacity = 0.4 };
int point = 74;
double guarantee = 90;
if (type is GachaType.WeaponEventWish or GachaType.LightConeEventWarp)
if (type is GachaType.WeaponEventWish or GachaType.LightConeEventWarp or GachaType.WEngineChannel)
{
point = 63;
guarantee = 80;
Expand Down
2 changes: 2 additions & 0 deletions src/Starward/Services/Gacha/GachaLogService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -226,12 +226,14 @@ public virtual (List<GachaTypeStats> GachaStats, List<GachaLogItemEx> ItemStats)
{
stats.List_5.Insert(0, new GachaLogItemEx
{
GachaType = (GachaType)type,
Name = Lang.GachaStatsCard_Pity,
Pity = stats.Pity_5,
Time = list.Last().Time,
});
stats.List_4.Insert(0, new GachaLogItemEx
{
GachaType = (GachaType)type,
Name = Lang.GachaStatsCard_Pity,
Pity = stats.Pity_4,
Time = list.Last().Time,
Expand Down

0 comments on commit 8d701b0

Please sign in to comment.