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>
|
/// <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()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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 };
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -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}"
|
||||||
|
|||||||
@@ -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; }
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user