mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.git
synced 2025-11-19 21:02:53 +08:00
fix #745
This commit is contained in:
@@ -118,11 +118,6 @@ internal sealed class SummaryReliquaryFactory
|
||||
ReliquaryAffixWeight affixWeight = metadataContext.IdReliquaryAffixWeightMap.GetValueOrDefault(avatarInfo.AvatarId, ReliquaryAffixWeight.Default);
|
||||
ReliquaryMainAffixLevel maxRelicLevel = metadataContext.ReliqueryLevels.Where(r => r.Rank == reliquary.RankLevel).MaxBy(r => r.Level)!;
|
||||
|
||||
if (property == FightProperty.FIGHT_PROP_ELEC_ADD_HURT)
|
||||
{
|
||||
System.Diagnostics.Debugger.Break();
|
||||
}
|
||||
|
||||
float percent = relicLevel.PropertyMap[property] / maxRelicLevel.PropertyMap[property];
|
||||
float baseScore = 8 * percent * affixWeight[property];
|
||||
|
||||
|
||||
@@ -150,11 +150,11 @@
|
||||
TextTrimming="CharacterEllipsis"/>
|
||||
<NumberBox
|
||||
Grid.Column="2"
|
||||
MinWidth="100"
|
||||
MinWidth="{StaticResource NumberBoxMinWidth}"
|
||||
VerticalAlignment="Center"
|
||||
Maximum="{Binding LevelMax}"
|
||||
Minimum="{Binding LevelMin}"
|
||||
SpinButtonPlacementMode="Compact"
|
||||
SpinButtonPlacementMode="Inline"
|
||||
Value="{Binding LevelCurrent, Mode=TwoWay}"/>
|
||||
<FontIcon
|
||||
Grid.Column="3"
|
||||
@@ -163,11 +163,11 @@
|
||||
Glyph=""/>
|
||||
<NumberBox
|
||||
Grid.Column="4"
|
||||
MinWidth="100"
|
||||
MinWidth="{StaticResource NumberBoxMinWidth}"
|
||||
VerticalAlignment="Center"
|
||||
Maximum="{Binding LevelMax}"
|
||||
Minimum="{Binding LevelMin}"
|
||||
SpinButtonPlacementMode="Compact"
|
||||
SpinButtonPlacementMode="Inline"
|
||||
Value="{Binding LevelTarget, Mode=TwoWay}"/>
|
||||
</Grid>
|
||||
</Border>
|
||||
|
||||
@@ -125,7 +125,7 @@ internal sealed partial class WikiWeaponViewModel : Abstraction.ViewModel
|
||||
// ContentDialog must be created by main thread.
|
||||
await taskContext.SwitchToMainThreadAsync();
|
||||
CalculableOptions options = new(null, weapon.ToCalculable());
|
||||
CultivatePromotionDeltaDialog dialog = serviceProvider.CreateInstance<CultivatePromotionDeltaDialog>(weapon.ToCalculable());
|
||||
CultivatePromotionDeltaDialog dialog = serviceProvider.CreateInstance<CultivatePromotionDeltaDialog>(options);
|
||||
(bool isOk, CalcAvatarPromotionDelta delta) = await dialog.GetPromotionDeltaAsync().ConfigureAwait(false);
|
||||
|
||||
if (isOk)
|
||||
|
||||
Reference in New Issue
Block a user