mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-06 15:17:34 +00:00
Added server setting - DestroyTamesOverLevelClamp
This commit is contained in:
parent
252b6291fe
commit
57de64ff88
5 changed files with 47 additions and 9 deletions
|
|
@ -1045,6 +1045,15 @@ namespace ServerManagerTool.Lib
|
|||
set { SetValue(DifficultyOffsetProperty, value); }
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty DestroyTamesOverLevelClampProperty = DependencyProperty.Register(nameof(DestroyTamesOverLevelClamp), typeof(int), typeof(ServerProfile), new PropertyMetadata(0));
|
||||
[IniFileEntry(IniFiles.Game, IniSections.Game_ShooterGameMode, ServerProfileCategory.Rules, WriteIfNotValue = 0)]
|
||||
public int DestroyTamesOverLevelClamp
|
||||
{
|
||||
get { return (int)GetValue(DestroyTamesOverLevelClampProperty); }
|
||||
set { SetValue(DestroyTamesOverLevelClampProperty, value); }
|
||||
}
|
||||
|
||||
|
||||
public static readonly DependencyProperty EnableTributeDownloadsProperty = DependencyProperty.Register(nameof(EnableTributeDownloads), typeof(bool), typeof(ServerProfile), new PropertyMetadata(false));
|
||||
[IniFileEntry(IniFiles.GameUserSettings, IniSections.GUS_ServerSettings, ServerProfileCategory.Rules, "NoTributeDownloads", InvertBoolean = true)]
|
||||
public bool EnableTributeDownloads
|
||||
|
|
@ -5373,6 +5382,7 @@ namespace ServerManagerTool.Lib
|
|||
this.ClearValue(EnableDifficultyOverrideProperty);
|
||||
this.ClearValue(OverrideOfficialDifficultyProperty);
|
||||
this.ClearValue(DifficultyOffsetProperty);
|
||||
this.ClearValue(DestroyTamesOverLevelClampProperty);
|
||||
|
||||
this.ClearValue(EnableTributeDownloadsProperty);
|
||||
this.ClearValue(PreventDownloadSurvivorsProperty);
|
||||
|
|
@ -6055,6 +6065,7 @@ namespace ServerManagerTool.Lib
|
|||
this.SetValue(EnableDifficultyOverrideProperty, sourceProfile.EnableDifficultyOverride);
|
||||
this.SetValue(OverrideOfficialDifficultyProperty, sourceProfile.OverrideOfficialDifficulty);
|
||||
this.SetValue(DifficultyOffsetProperty, sourceProfile.DifficultyOffset);
|
||||
this.SetValue(DestroyTamesOverLevelClampProperty, sourceProfile.DestroyTamesOverLevelClamp);
|
||||
|
||||
this.SetValue(EnableTributeDownloadsProperty, sourceProfile.EnableTributeDownloads);
|
||||
this.SetValue(PreventDownloadSurvivorsProperty, sourceProfile.PreventDownloadSurvivors);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue