Adds settings (#126)

This commit is contained in:
Kamron Batman 2020-05-02 23:41:30 -07:00 • committed by GitHub
parent 8028a85ffe
commit f336a56364
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 229 additions and 99 deletions

View file

@ -3266,7 +3266,12 @@ namespace Server.Mobiles
{
}
public const bool BondingEnabled = true;
public static void Initialize()
{
BondingEnabled = ServerConfiguration.GetOrUpdateSetting("taming.enableBonding", true);
}
public static bool BondingEnabled { get; private set; }
public virtual bool IsBondable => BondingEnabled && !Summoned;
public virtual TimeSpan BondingDelay => TimeSpan.FromDays(7.0);