#W# Added: Settings.cs has some custimizable settings exposed for easy tweaking.
This commit is contained in:
parent
c1c3c1b30d
commit
314a2384d2
6 changed files with 81 additions and 4 deletions
|
|
@ -1397,7 +1397,7 @@ namespace Server.Mobiles
|
|||
public virtual bool StandsDownOnCommand => PetsStandDownOnCommand;
|
||||
|
||||
public virtual bool IsBondable => BondingEnabled && !Summoned;
|
||||
public virtual TimeSpan BondingDelay => TimeSpan.FromDays(7.0);
|
||||
public virtual TimeSpan BondingDelay => TimeSpan.FromDays(ValidSettings.BondDays());
|
||||
public virtual TimeSpan BondingAbandonDelay => TimeSpan.FromDays(1.0);
|
||||
|
||||
public override bool CanRegenHits => !IsDeadPet && !Summoned && base.CanRegenHits;
|
||||
|
|
@ -3819,7 +3819,7 @@ namespace Server.Mobiles
|
|||
{
|
||||
var tc = Core.TickCount;
|
||||
|
||||
if (!Controlled && !Summoned && Region is Server.Regions.GreetingDungeonRegion)
|
||||
if (Settings.S_LineOfSight && !Controlled && !Summoned && Region is Server.Regions.GreetingDungeonRegion)
|
||||
{
|
||||
if (Combatant == null)
|
||||
{
|
||||
|
|
@ -3856,6 +3856,12 @@ namespace Server.Mobiles
|
|||
Hidden = false;
|
||||
CantWalk = false;
|
||||
}
|
||||
else if (Hidden && _isLosHidden)
|
||||
{
|
||||
_isLosHidden = false;
|
||||
Hidden = false;
|
||||
CantWalk = false;
|
||||
}
|
||||
}
|
||||
|
||||
if (EnableRummaging && CanRummageCorpses && !Summoned && !Controlled && tc - m_NextRummageTime >= 0)
|
||||
|
|
@ -4581,7 +4587,7 @@ namespace Server.Mobiles
|
|||
{
|
||||
BondingBegin = Core.Now;
|
||||
}
|
||||
else if (BondingBegin + BondingDelay <= Core.Now)
|
||||
else if ( ( ValidSettings.BondDays() < 1 ) || BondingBegin + BondingDelay <= Core.Now)
|
||||
{
|
||||
IsBonded = true;
|
||||
BondingBegin = DateTime.MinValue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue