diff --git a/src/Snap.Hutao/Snap.Hutao/Model/Metadata/Item/DisplayItem.cs b/src/Snap.Hutao/Snap.Hutao/Model/Metadata/Item/DisplayItem.cs index 5f4c0471e1..e2070078d5 100644 --- a/src/Snap.Hutao/Snap.Hutao/Model/Metadata/Item/DisplayItem.cs +++ b/src/Snap.Hutao/Snap.Hutao/Model/Metadata/Item/DisplayItem.cs @@ -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; } diff --git a/src/Snap.Hutao/Snap.Hutao/ViewModel/Cultivation/ResinStatistics.cs b/src/Snap.Hutao/Snap.Hutao/ViewModel/Cultivation/ResinStatistics.cs index d0ab9bfe55..a5825f94e7 100644 --- a/src/Snap.Hutao/Snap.Hutao/ViewModel/Cultivation/ResinStatistics.cs +++ b/src/Snap.Hutao/Snap.Hutao/ViewModel/Cultivation/ResinStatistics.cs @@ -7,6 +7,11 @@ namespace Snap.Hutao.ViewModel.Cultivation; internal sealed class ResinStatistics { + public ResinStatistics() + { + SelectedWorldDropProability = WorldDropProability.Nine; + } + public ImmutableArray WorldDropProabilities { get; } = WorldDropProability.WorldDropProabilities; public WorldDropProability SelectedWorldDropProability @@ -23,7 +28,6 @@ public WorldDropProability SelectedWorldDropProability WeeklyBoss.SelectedWorldDropProability = value; } } - = WorldDropProability.Nine; public ResinStatisticsItem BlossomOfWealth { get; } = new("θ—ι‡‘δΉ‹θŠ±", ResinStatisticsItemKind.BlossomOfWealth, 20, true); diff --git a/src/Snap.Hutao/Snap.Hutao/ViewModel/Cultivation/ResinStatisticsItem.cs b/src/Snap.Hutao/Snap.Hutao/ViewModel/Cultivation/ResinStatisticsItem.cs index da69aa47d8..6fb3f0bf00 100644 --- a/src/Snap.Hutao/Snap.Hutao/ViewModel/Cultivation/ResinStatisticsItem.cs +++ b/src/Snap.Hutao/Snap.Hutao/ViewModel/Cultivation/ResinStatisticsItem.cs @@ -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; } @@ -34,7 +35,6 @@ public WorldDropProability SelectedWorldDropProability } } } - = WorldDropProability.Nine; public int ResinPerBlossom { get; }