fix avatar property page issue

This commit is contained in:
DismissedLight
2023-08-26 11:05:03 +08:00
parent 0cdcb1c444
commit 853473ebf7
5 changed files with 5 additions and 7 deletions

View File

@@ -23,10 +23,7 @@ internal static class SummaryHelper
/// <returns>命之座</returns> /// <returns>命之座</returns>
public static List<ConstellationView> CreateConstellations(List<Skill> talents, List<SkillId>? talentIds) public static List<ConstellationView> CreateConstellations(List<Skill> talents, List<SkillId>? talentIds)
{ {
if (talentIds.IsNullOrEmpty()) talentIds ??= new();
{
return new();
}
return talents.SelectList(talent => new ConstellationView() return talents.SelectList(talent => new ConstellationView()
{ {

View File

@@ -121,7 +121,7 @@ internal sealed class SummaryReliquaryFactory
{ {
ReliquarySubAffix subAffix = metadataContext.IdReliquarySubAffixMap[subAffixId]; ReliquarySubAffix subAffix = metadataContext.IdReliquarySubAffixMap[subAffixId];
SummaryReliquarySubPropertyCompositionInfo info = infos.SingleOrAdd(prop => prop.Type == subAffix.Type, () => new(subAffix.Type)); SummaryReliquarySubPropertyCompositionInfo info = infos.SingleOrAdd(prop => prop.Type == subAffix.Type, () => new(subAffix.Type));
info.Count++; info.Count += 1;
info.Value += subAffix.Value; info.Value += subAffix.Value;
} }

View File

@@ -29,6 +29,6 @@ internal sealed class SummaryReliquarySubPropertyCompositionInfo
public ReliquaryComposedSubProperty ToReliquaryComposedSubProperty() public ReliquaryComposedSubProperty ToReliquaryComposedSubProperty()
{ {
return new(Type, FightPropertyFormat.FormatValue(Type, Value), 0); return new(Type, FightPropertyFormat.FormatValue(Type, Value), 0) { EnhancedCount = Count };
} }
} }

View File

@@ -681,6 +681,7 @@
StrokeThickness="1"/> StrokeThickness="1"/>
<TextBlock <TextBlock
Grid.Column="2" Grid.Column="2"
Margin="0,0,0,1"
HorizontalAlignment="Center" HorizontalAlignment="Center"
VerticalAlignment="Center" VerticalAlignment="Center"
FontSize="{ThemeResource InfoBadgeValueFontSize}" FontSize="{ThemeResource InfoBadgeValueFontSize}"

View File

@@ -16,7 +16,7 @@ internal class ReliquaryComposedSubProperty : ReliquarySubProperty
/// <summary> /// <summary>
/// 强化次数 /// 强化次数
/// </summary> /// </summary>
public int EnhancedCount { get; set; } public uint EnhancedCount { get; set; }
internal FightProperty Type { get; } internal FightProperty Type { get; }
} }