Fixes configurations. (#128)

This commit is contained in:
Kamron Batman 2020-05-03 12:03:24 -07:00 committed by GitHub
parent f336a56364
commit cf8620d558
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 25 additions and 21 deletions

View file

@ -16,7 +16,7 @@ namespace Server.Engines.VeteranRewards
// assuming vet rewards are enabled, should total skill cap bonuses be awarded? (720 skills total at 4th level)
public static bool SkillCapRewards { get; private set; }
public static TimeSpan RewardInterval = TimeSpan.FromDays(30.0);
public static TimeSpan RewardInterval { get; private set; }
public static RewardCategory[] Categories
{
@ -455,8 +455,9 @@ namespace Server.Engines.VeteranRewards
public static void Initialize()
{
Enabled = ServerConfiguration.GetOrUpdateSetting("vetRewards.enabled", true);
SkillCapRewards = ServerConfiguration.GetOrUpdateSetting("vetReards.skillCapRewards", true);
Enabled = ServerConfiguration.GetOrUpdateSetting("vetRewards.enable", true);
SkillCapRewards = ServerConfiguration.GetOrUpdateSetting("vetRewards.skillCapRewards", true);
RewardInterval = ServerConfiguration.GetOrUpdateSetting("vetRewards.rewardInterval", TimeSpan.FromDays(30.0));
if (Enabled)
EventSink.Login += EventSink_Login;