mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-06 15:17:34 +00:00
Ragnarok Settings
- added Ragnarok settings
This commit is contained in:
parent
711cf955c3
commit
87f86036d7
28 changed files with 708 additions and 58 deletions
|
|
@ -1553,6 +1553,18 @@
|
|||
<sys:String x:Key="ServerSettings_HexagonCostMultiplierLabel">Hexagon Cost Multiplier</sys:String>
|
||||
<sys:String x:Key="ServerSettings_HexagonCostMultiplierTooltip">Specifies the multiplier for the hexagon cost of items.</sys:String>
|
||||
|
||||
<sys:String x:Key="ServerSettings_RagnarokLabel">Enable Ragnarok Settings</sys:String>
|
||||
<sys:String x:Key="ServerSettings_Ragnarok_AllowMultipleTamedUnicornsLabel">Allow Multiple Tamed Unicorns</sys:String>
|
||||
<sys:String x:Key="ServerSettings_Ragnarok_AllowMultipleTamedUnicornsTooltip">If enabled, will allow one wild and unlimited tamed Unicorns on the map. Otherwise only one unicorn on the map at a time.</sys:String>
|
||||
<sys:String x:Key="ServerSettings_Ragnarok_UnicornSpawnIntervalLabel">Unicorn Spawn Interval</sys:String>
|
||||
<sys:String x:Key="ServerSettings_Ragnarok_UnicornSpawnIntervalTooltip">How long the game should wait before spawning a new Unicorn if the wild one is killed (or tamed, if AllowMultipleTamedUnicorns is enabled). This value sets the minimum amount of time (in hours), and the maximum is equal to 2x this value.</sys:String>
|
||||
<sys:String x:Key="ServerSettings_Ragnarok_EnableVolcanoLabel">Enable Volcano</sys:String>
|
||||
<sys:String x:Key="ServerSettings_Ragnarok_EnableVolcanoTooltip">If enabled, will allow the volcano to become active.</sys:String>
|
||||
<sys:String x:Key="ServerSettings_Ragnarok_VolcanoIntervalLabel">Volcano Interval</sys:String>
|
||||
<sys:String x:Key="ServerSettings_Ragnarok_VolcanoIntervalTooltip">0 = 5000 (min) - 15000 (max) seconds between instances of the volcano becoming active. Any number above 0 acts as a multiplier.</sys:String>
|
||||
<sys:String x:Key="ServerSettings_Ragnarok_VolcanoIntensityLabel">Volcano Intensity</sys:String>
|
||||
<sys:String x:Key="ServerSettings_Ragnarok_VolcanoIntensityTooltip">The lower the value, the more intense the volcano's eruption will be. Recommended to leave at 1.0, the minimum value is 0.25, and for multiplayer games, it should not go below 0.5. Very high numbers will basically disable the flaming rocks flung out of the volcano.</sys:String>
|
||||
|
||||
<sys:String x:Key="ServerSettings_FjordurLabel">Enable Fjordur Settings</sys:String>
|
||||
<sys:String x:Key="ServerSettings_UseFjordurTraversalBuffLabel">Enable Fjordur Biome Teleport</sys:String>
|
||||
<sys:String x:Key="ServerSettings_UseFjordurTraversalBuffTooltip">If enabled, will allow biome teleport on Fjordur map.</sys:String>
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@
|
|||
GUS_GameSession,
|
||||
GUS_MultiHome,
|
||||
GUS_MessageOfTheDay,
|
||||
GUS_Ragnarok,
|
||||
|
||||
// Game.ini
|
||||
Game_ShooterGameMode,
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ namespace ServerManagerTool.Lib
|
|||
{ IniSections.GUS_GameSession, "/Script/Engine.GameSession"},
|
||||
{ IniSections.GUS_MultiHome, "MultiHome" },
|
||||
{ IniSections.GUS_MessageOfTheDay, "MessageOfTheDay" },
|
||||
{ IniSections.GUS_Ragnarok, "Ragnarok" },
|
||||
|
||||
// GameUserSettings sections, not used by server manager
|
||||
|
||||
|
|
|
|||
|
|
@ -1811,22 +1811,69 @@ namespace ServerManagerTool.Lib
|
|||
set { SetValue(HexagonCostMultiplierProperty, value); }
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty EnableFjordurSettingsProperty = DependencyProperty.Register(nameof(EnableFjordurSettings), typeof(bool), typeof(ServerProfile), new PropertyMetadata(false));
|
||||
[DataMember]
|
||||
public bool EnableFjordurSettings
|
||||
public static readonly DependencyProperty Ragnarok_EnableSettingsProperty = DependencyProperty.Register(nameof(Ragnarok_EnableSettings), typeof(bool), typeof(ServerProfile), new PropertyMetadata(false));
|
||||
public bool Ragnarok_EnableSettings
|
||||
{
|
||||
get { return (bool)GetValue(EnableFjordurSettingsProperty); }
|
||||
set { SetValue(EnableFjordurSettingsProperty, value); }
|
||||
get { return (bool)GetValue(Ragnarok_EnableSettingsProperty); }
|
||||
set { SetValue(Ragnarok_EnableSettingsProperty, value); }
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty Ragnarok_AllowMultipleTamedUnicornsProperty = DependencyProperty.Register(nameof(Ragnarok_AllowMultipleTamedUnicorns), typeof(bool), typeof(ServerProfile), new PropertyMetadata(false));
|
||||
[IniFileEntry(IniFiles.GameUserSettings, IniSections.GUS_Ragnarok, ServerProfileCategory.Rules, "AllowMultipleTamedUnicorns", ConditionedOn = nameof(Ragnarok_EnableSettings), ClearSectionIfEmpty = true)]
|
||||
public bool Ragnarok_AllowMultipleTamedUnicorns
|
||||
{
|
||||
get { return (bool)GetValue(Ragnarok_AllowMultipleTamedUnicornsProperty); }
|
||||
set { SetValue(Ragnarok_AllowMultipleTamedUnicornsProperty, value); }
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty Ragnarok_UnicornSpawnIntervalProperty = DependencyProperty.Register(nameof(Ragnarok_UnicornSpawnInterval), typeof(int), typeof(ServerProfile), new PropertyMetadata(24));
|
||||
[IniFileEntry(IniFiles.GameUserSettings, IniSections.GUS_Ragnarok, ServerProfileCategory.Rules, "UnicornSpawnInterval", ConditionedOn = nameof(Ragnarok_EnableSettings), ClearSectionIfEmpty = true)]
|
||||
public int Ragnarok_UnicornSpawnInterval
|
||||
{
|
||||
get { return (int)GetValue(Ragnarok_UnicornSpawnIntervalProperty); }
|
||||
set { SetValue(Ragnarok_UnicornSpawnIntervalProperty, value); }
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty Ragnarok_EnableVolcanoProperty = DependencyProperty.Register(nameof(Ragnarok_EnableVolcano), typeof(bool), typeof(ServerProfile), new PropertyMetadata(true));
|
||||
[IniFileEntry(IniFiles.GameUserSettings, IniSections.GUS_Ragnarok, ServerProfileCategory.Rules, "EnableVolcano", ConditionedOn = nameof(Ragnarok_EnableSettings), ClearSectionIfEmpty = true)]
|
||||
public bool Ragnarok_EnableVolcano
|
||||
{
|
||||
get { return (bool)GetValue(Ragnarok_EnableVolcanoProperty); }
|
||||
set { SetValue(Ragnarok_EnableVolcanoProperty, value); }
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty Ragnarok_VolcanoIntervalProperty = DependencyProperty.Register(nameof(Ragnarok_VolcanoInterval), typeof(int), typeof(ServerProfile), new PropertyMetadata(0));
|
||||
[IniFileEntry(IniFiles.GameUserSettings, IniSections.GUS_Ragnarok, ServerProfileCategory.Rules, "VolcanoInterval", ConditionedOn = nameof(Ragnarok_EnableSettings), ClearSectionIfEmpty = true)]
|
||||
public int Ragnarok_VolcanoInterval
|
||||
{
|
||||
get { return (int)GetValue(Ragnarok_VolcanoIntervalProperty); }
|
||||
set { SetValue(Ragnarok_VolcanoIntervalProperty, value); }
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty Ragnarok_VolcanoIntensityProperty = DependencyProperty.Register(nameof(Ragnarok_VolcanoIntensity), typeof(float), typeof(ServerProfile), new PropertyMetadata(1.0f));
|
||||
[IniFileEntry(IniFiles.GameUserSettings, IniSections.GUS_Ragnarok, ServerProfileCategory.Rules, "VolcanoIntensity", ConditionedOn = nameof(Ragnarok_EnableSettings), ClearSectionIfEmpty = true)]
|
||||
public float Ragnarok_VolcanoIntensity
|
||||
{
|
||||
get { return (float)GetValue(Ragnarok_VolcanoIntensityProperty); }
|
||||
set { SetValue(Ragnarok_VolcanoIntensityProperty, value); }
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty Fjordur_EnableSettingsProperty = DependencyProperty.Register(nameof(Fjordur_EnableSettings), typeof(bool), typeof(ServerProfile), new PropertyMetadata(false));
|
||||
public bool Fjordur_EnableSettings
|
||||
{
|
||||
get { return (bool)GetValue(Fjordur_EnableSettingsProperty); }
|
||||
set { SetValue(Fjordur_EnableSettingsProperty, 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, ConditionedOn = nameof(EnableFjordurSettings))]
|
||||
[IniFileEntry(IniFiles.GameUserSettings, IniSections.GUS_ServerSettings, ServerProfileCategory.Rules, ConditionedOn = nameof(Fjordur_EnableSettings))]
|
||||
public bool UseFjordurTraversalBuff
|
||||
{
|
||||
get { return (bool)GetValue(UseFjordurTraversalBuffProperty); }
|
||||
set { SetValue(UseFjordurTraversalBuffProperty, value); }
|
||||
}
|
||||
|
||||
|
||||
public bool ClampItemStats
|
||||
{
|
||||
get
|
||||
|
|
@ -5677,6 +5724,14 @@ namespace ServerManagerTool.Lib
|
|||
this.ClearValue(HexagonRewardMultiplierProperty);
|
||||
this.ClearValue(HexagonCostMultiplierProperty);
|
||||
|
||||
this.ClearValue(Ragnarok_EnableSettingsProperty);
|
||||
this.ClearValue(Ragnarok_AllowMultipleTamedUnicornsProperty);
|
||||
this.ClearValue(Ragnarok_UnicornSpawnIntervalProperty);
|
||||
this.ClearValue(Ragnarok_EnableVolcanoProperty);
|
||||
this.ClearValue(Ragnarok_VolcanoIntervalProperty);
|
||||
this.ClearValue(Ragnarok_VolcanoIntensityProperty);
|
||||
|
||||
this.ClearValue(Fjordur_EnableSettingsProperty);
|
||||
this.ClearValue(UseFjordurTraversalBuffProperty);
|
||||
|
||||
this.ClearNullableValue(ItemStatClamps_GenericQualityProperty);
|
||||
|
|
@ -6395,6 +6450,14 @@ namespace ServerManagerTool.Lib
|
|||
this.SetValue(HexagonRewardMultiplierProperty, sourceProfile.HexagonRewardMultiplier);
|
||||
this.SetValue(HexagonCostMultiplierProperty, sourceProfile.HexagonCostMultiplier);
|
||||
|
||||
this.SetValue(Ragnarok_EnableSettingsProperty, sourceProfile.Ragnarok_EnableSettings);
|
||||
this.SetValue(Ragnarok_AllowMultipleTamedUnicornsProperty, sourceProfile.Ragnarok_AllowMultipleTamedUnicorns);
|
||||
this.SetValue(Ragnarok_UnicornSpawnIntervalProperty, sourceProfile.Ragnarok_UnicornSpawnInterval);
|
||||
this.SetValue(Ragnarok_EnableVolcanoProperty, sourceProfile.Ragnarok_EnableVolcano);
|
||||
this.SetValue(Ragnarok_VolcanoIntervalProperty, sourceProfile.Ragnarok_VolcanoInterval);
|
||||
this.SetValue(Ragnarok_VolcanoIntensityProperty, sourceProfile.Ragnarok_VolcanoIntensity);
|
||||
|
||||
this.SetValue(Fjordur_EnableSettingsProperty, sourceProfile.Fjordur_EnableSettings);
|
||||
this.SetValue(UseFjordurTraversalBuffProperty, sourceProfile.UseFjordurTraversalBuff);
|
||||
|
||||
this.SetNullableValue(ItemStatClamps_GenericQualityProperty, sourceProfile.ItemStatClamps_GenericQuality);
|
||||
|
|
|
|||
|
|
@ -2151,10 +2151,62 @@
|
|||
|
||||
<GroupBox Style="{StaticResource GroupBoxStyle}">
|
||||
<GroupBox.Header>
|
||||
<cctl:CheckBoxAndTextBlock IsChecked="{Binding EnableFjordurSettings, Mode=TwoWay}" Text="{DynamicResource ServerSettings_FjordurLabel}" />
|
||||
<cctl:CheckBoxAndTextBlock IsChecked="{Binding Ragnarok_EnableSettings, Mode=TwoWay}" Text="{DynamicResource ServerSettings_RagnarokLabel}" />
|
||||
</GroupBox.Header>
|
||||
|
||||
<Grid IsEnabled="{Binding EnableFjordurSettings}">
|
||||
<Grid IsEnabled="{Binding Ragnarok_EnableSettings}">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition/>
|
||||
<RowDefinition/>
|
||||
<RowDefinition/>
|
||||
<RowDefinition/>
|
||||
<RowDefinition/>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<cctl:CheckBoxAndTextBlock Grid.Row="0" Grid.Column="0" Margin="5,5,5,0" HorizontalAlignment="Left"
|
||||
IsChecked="{Binding Ragnarok_AllowMultipleTamedUnicorns, Mode=TwoWay}"
|
||||
Text="{DynamicResource ServerSettings_Ragnarok_AllowMultipleTamedUnicornsLabel}"
|
||||
ToolTip="{DynamicResource ServerSettings_Ragnarok_AllowMultipleTamedUnicornsTooltip}"/>
|
||||
|
||||
<cctl:AnnotatedIntSlider Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3" Margin="5,5,5,0"
|
||||
Minimum="1" Maximum="48" SmallChange="1" LargeChange="1" TickFrequency="6"
|
||||
Label="{DynamicResource ServerSettings_Ragnarok_UnicornSpawnIntervalLabel}"
|
||||
Value="{Binding Ragnarok_UnicornSpawnInterval, Converter={cc:IntRangeValueConverter 1, 48}}"
|
||||
Suffix="{DynamicResource SliderUnits_Hours}"
|
||||
ToolTip="{DynamicResource ServerSettings_Ragnarok_UnicornSpawnIntervalTooltip}"/>
|
||||
|
||||
<cctl:CheckBoxAndTextBlock Grid.Row="2" Grid.Column="0" Margin="5,5,5,0" HorizontalAlignment="Left"
|
||||
IsChecked="{Binding Ragnarok_EnableVolcano, Mode=TwoWay}"
|
||||
Text="{DynamicResource ServerSettings_Ragnarok_EnableVolcanoLabel}"
|
||||
ToolTip="{DynamicResource ServerSettings_Ragnarok_EnableVolcanoTooltip}"/>
|
||||
|
||||
<cctl:AnnotatedIntSlider Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="3" Margin="5,5,5,0" IsEnabled="{Binding Ragnarok_EnableVolcano}"
|
||||
Minimum="0" Maximum="10" SmallChange="1" LargeChange="1" TickFrequency="1"
|
||||
Label="{DynamicResource ServerSettings_Ragnarok_VolcanoIntervalLabel}"
|
||||
Value="{Binding Ragnarok_VolcanoInterval, Converter={cc:IntRangeValueConverter 0, 100}}"
|
||||
Suffix="{DynamicResource SliderUnits_Multiplier}"
|
||||
ToolTip="{DynamicResource ServerSettings_Ragnarok_VolcanoIntervalTooltip}"/>
|
||||
|
||||
<cctl:AnnotatedSlider Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="3" Margin="5,5,5,0" IsEnabled="{Binding Ragnarok_EnableVolcano}"
|
||||
Minimum="0.25" Maximum="10" SmallChange="0.1" LargeChange="1" TickFrequency="1"
|
||||
Label="{DynamicResource ServerSettings_Ragnarok_VolcanoIntensityLabel}"
|
||||
Value="{Binding Ragnarok_VolcanoIntensity, Converter={cc:FloatRangeValueConverter 0.25, 10.0}}"
|
||||
Suffix="{DynamicResource SliderUnits_Multiplier}"
|
||||
ToolTip="{DynamicResource ServerSettings_Ragnarok_VolcanoIntensityTooltip}"/>
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
|
||||
<GroupBox Style="{StaticResource GroupBoxStyle}">
|
||||
<GroupBox.Header>
|
||||
<cctl:CheckBoxAndTextBlock IsChecked="{Binding Fjordur_EnableSettings, Mode=TwoWay}" Text="{DynamicResource ServerSettings_FjordurLabel}" />
|
||||
</GroupBox.Header>
|
||||
|
||||
<Grid IsEnabled="{Binding Fjordur_EnableSettings}">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition/>
|
||||
</Grid.RowDefinitions>
|
||||
|
|
|
|||
|
|
@ -19,7 +19,8 @@
|
|||
<u style="font-size: .9em;">CHANGE</u>
|
||||
<br/>
|
||||
<ul>
|
||||
<li>Fjordur Settings - added checkbox to enable/disable settings.</li>
|
||||
<li>Rules Section - Fjordur Settings - added checkbox to enable/disable settings.</li>
|
||||
<li>Rules Section - Ragnarok Settings - added settings for Ragnarok, located at the bottom of the section.</li>
|
||||
</ul>
|
||||
</p>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue