feat: Loads BaseHouse.DecayEnabled from modernuo.json (default to true) (#1888)

This commit is contained in:
Mink80 2024-07-24 18:32:03 +02:00 committed by GitHub
parent fd067febd7
commit 4a83b651f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,9 +17,9 @@ namespace Server.Multis
{ {
public abstract class BaseHouse : BaseMulti public abstract class BaseHouse : BaseMulti
{ {
public const int MaxCoOwners = 15; public static bool DecayEnabled { get; set; }
public const bool DecayEnabled = true; public const int MaxCoOwners = 15;
public const int MaximumBarkeepCount = 2; public const int MaximumBarkeepCount = 2;
@ -1265,6 +1265,7 @@ namespace Server.Multis
public static void Configure() public static void Configure()
{ {
DecayEnabled = ServerConfiguration.GetOrUpdateSetting("houseDecay.enable", true);
LockedDownFlag = 1; LockedDownFlag = 1;
SecureFlag = 2; SecureFlag = 2;
} }