From f9bfa164e49e86c8aa4041d610a3d5d15e75703c Mon Sep 17 00:00:00 2001 From: WarrentyExpired Date: Thu, 16 Jul 2026 20:35:18 -0400 Subject: [PATCH] #W# Added setting in Scripts/Settings.cs to adjust the stat gain cooldown. --- Scripts/Settings.cs | 12 ++++++++++++ Scripts/Skills/SkillCheck.cs | 6 +++--- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/Scripts/Settings.cs b/Scripts/Settings.cs index 7d76b07..2b3272f 100644 --- a/Scripts/Settings.cs +++ b/Scripts/Settings.cs @@ -202,5 +202,17 @@ namespace Server.Misc // The maximum amount of time will be 30 minutes beyond the minimum. return 90; } + + public static double PlayerStatGainDelay() + { + // How many minutes between stat gains for players? (Default is 15.0) + return 15.0; + } + + public static double PetStatGainDelay() + { + // How many minutes between stat gains for pets? (Default is 5.0) + return 5.0; + } } } diff --git a/Scripts/Skills/SkillCheck.cs b/Scripts/Skills/SkillCheck.cs index a064eb8..67b5ff8 100644 --- a/Scripts/Skills/SkillCheck.cs +++ b/Scripts/Skills/SkillCheck.cs @@ -520,8 +520,8 @@ namespace Server.Misc } } - private static TimeSpan m_StatGainDelay = TimeSpan.FromMinutes( 15.0 ); - private static TimeSpan m_PetStatGainDelay = TimeSpan.FromMinutes( 5.0 ); + private static TimeSpan m_StatGainDelay = TimeSpan.FromMinutes( Server.Misc.Settings.PlayerStatGainDelay() ); + private static TimeSpan m_PetStatGainDelay = TimeSpan.FromMinutes( Server.Misc.Settings.PetStatGainDelay() ); public static void GainStat( Mobile from, Stat stat ) { @@ -571,4 +571,4 @@ namespace Server.Misc IncreaseStat( from, stat, atrophy ); } } -} \ No newline at end of file +}