mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.git
synced 2025-11-19 21:02:53 +08:00
fix avatar property page issue
This commit is contained in:
@@ -23,10 +23,7 @@ internal static class SummaryHelper
|
||||
/// <returns>命之座</returns>
|
||||
public static List<ConstellationView> CreateConstellations(List<Skill> talents, List<SkillId>? talentIds)
|
||||
{
|
||||
if (talentIds.IsNullOrEmpty())
|
||||
{
|
||||
return new();
|
||||
}
|
||||
talentIds ??= new();
|
||||
|
||||
return talents.SelectList(talent => new ConstellationView()
|
||||
{
|
||||
|
||||
@@ -121,7 +121,7 @@ internal sealed class SummaryReliquaryFactory
|
||||
{
|
||||
ReliquarySubAffix subAffix = metadataContext.IdReliquarySubAffixMap[subAffixId];
|
||||
SummaryReliquarySubPropertyCompositionInfo info = infos.SingleOrAdd(prop => prop.Type == subAffix.Type, () => new(subAffix.Type));
|
||||
info.Count++;
|
||||
info.Count += 1;
|
||||
info.Value += subAffix.Value;
|
||||
}
|
||||
|
||||
|
||||
@@ -29,6 +29,6 @@ internal sealed class SummaryReliquarySubPropertyCompositionInfo
|
||||
|
||||
public ReliquaryComposedSubProperty ToReliquaryComposedSubProperty()
|
||||
{
|
||||
return new(Type, FightPropertyFormat.FormatValue(Type, Value), 0);
|
||||
return new(Type, FightPropertyFormat.FormatValue(Type, Value), 0) { EnhancedCount = Count };
|
||||
}
|
||||
}
|
||||
@@ -681,6 +681,7 @@
|
||||
StrokeThickness="1"/>
|
||||
<TextBlock
|
||||
Grid.Column="2"
|
||||
Margin="0,0,0,1"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
FontSize="{ThemeResource InfoBadgeValueFontSize}"
|
||||
|
||||
@@ -16,7 +16,7 @@ internal class ReliquaryComposedSubProperty : ReliquarySubProperty
|
||||
/// <summary>
|
||||
/// 强化次数
|
||||
/// </summary>
|
||||
public int EnhancedCount { get; set; }
|
||||
public uint EnhancedCount { get; set; }
|
||||
|
||||
internal FightProperty Type { get; }
|
||||
}
|
||||
Reference in New Issue
Block a user