This commit is contained in:
Lightczx
2023-06-08 21:44:55 +08:00
parent 126e866a02
commit 1199d2c737
3 changed files with 5 additions and 10 deletions

View File

@@ -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];

View File

@@ -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="&#xEBE7;"/>
<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>

View File

@@ -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)