Adds settings (#126)
This commit is contained in:
parent
8028a85ffe
commit
f336a56364
17 changed files with 229 additions and 99 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ namespace Server.Mobiles
|
|||
public override bool BardImmune => true;
|
||||
public override Poison PoisonImmune => Poison.Lethal;
|
||||
|
||||
public static void Initialize()
|
||||
public static new void Initialize()
|
||||
{
|
||||
EventSink.PlayerDeath += EventSink_PlayerDeath;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue