Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
qhy040404 committed Dec 1, 2024
1 parent aac887d commit b68eb72
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/Snap.Hutao/Snap.Hutao/Model/Metadata/Item/DisplayItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ internal class DisplayItem
public required string Icon { get; init; }

public required string Name { get; init; }
public required uint Rank { get; init; }

public uint Rank { get; init; }

public string? Description { get; init; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ namespace Snap.Hutao.ViewModel.Cultivation;

internal sealed class ResinStatistics
{
public ResinStatistics()
{
SelectedWorldDropProability = WorldDropProability.Nine;
}

public ImmutableArray<WorldDropProability> WorldDropProabilities { get; } = WorldDropProability.WorldDropProabilities;

public WorldDropProability SelectedWorldDropProability
Expand All @@ -23,7 +28,6 @@ public WorldDropProability SelectedWorldDropProability
WeeklyBoss.SelectedWorldDropProability = value;
}
}
= WorldDropProability.Nine;

public ResinStatisticsItem BlossomOfWealth { get; } = new("藏金之花", ResinStatisticsItemKind.BlossomOfWealth, 20, true);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ internal sealed partial class ResinStatisticsItem : ObservableObject

public ResinStatisticsItem(string title, ResinStatisticsItemKind kind, int resinPerBlossom, bool isCondensedResinAvailable)
{
Title = title;
this.kind = kind;
ResinPerBlossom = resinPerBlossom;
this.isCondensedResinAvailable = isCondensedResinAvailable;
Title = title;
ResinPerBlossom = resinPerBlossom;
SelectedWorldDropProability = WorldDropProability.Nine;
}

public string Title { get; }
Expand All @@ -34,7 +35,6 @@ public WorldDropProability SelectedWorldDropProability
}
}
}
= WorldDropProability.Nine;

public int ResinPerBlossom { get; }

Expand Down

0 comments on commit b68eb72

Please sign in to comment.