Fjordur Setting

- added UseFjordurTraversalBuff setting to rules.
This commit is contained in:
Brett Hewitson 2022-06-16 12:26:51 +10:00
parent 10506765fb
commit 1bf04ed33e
5 changed files with 61 additions and 6 deletions

View file

@ -1811,6 +1811,14 @@ namespace ServerManagerTool.Lib
set { SetValue(HexagonCostMultiplierProperty, value); }
}
public static readonly DependencyProperty UseFjordurTraversalBuffProperty = DependencyProperty.Register(nameof(UseFjordurTraversalBuff), typeof(bool), typeof(ServerProfile), new PropertyMetadata(true));
[IniFileEntry(IniFiles.GameUserSettings, IniSections.GUS_ServerSettings, ServerProfileCategory.Rules)]
public bool UseFjordurTraversalBuff
{
get { return (bool)GetValue(UseFjordurTraversalBuffProperty); }
set { SetValue(UseFjordurTraversalBuffProperty, value); }
}
public bool ClampItemStats
{
get
@ -5647,6 +5655,8 @@ namespace ServerManagerTool.Lib
this.ClearValue(HexagonRewardMultiplierProperty);
this.ClearValue(HexagonCostMultiplierProperty);
this.ClearValue(UseFjordurTraversalBuffProperty);
this.ClearNullableValue(ItemStatClamps_GenericQualityProperty);
this.ClearNullableValue(ItemStatClamps_ArmorProperty);
this.ClearNullableValue(ItemStatClamps_MaxDurabilityProperty);
@ -6366,6 +6376,8 @@ namespace ServerManagerTool.Lib
this.SetValue(HexagonRewardMultiplierProperty, sourceProfile.HexagonRewardMultiplier);
this.SetValue(HexagonCostMultiplierProperty, sourceProfile.HexagonCostMultiplier);
this.SetValue(UseFjordurTraversalBuffProperty, sourceProfile.UseFjordurTraversalBuff);
this.SetNullableValue(ItemStatClamps_GenericQualityProperty, sourceProfile.ItemStatClamps_GenericQuality);
this.SetNullableValue(ItemStatClamps_ArmorProperty, sourceProfile.ItemStatClamps_Armor);
this.SetNullableValue(ItemStatClamps_MaxDurabilityProperty, sourceProfile.ItemStatClamps_MaxDurability);