This reverts commit 179cb50557.
This commit is contained in:
parent
179cb50557
commit
c2ecc76457
588 changed files with 16260 additions and 10926 deletions
|
|
@ -90,14 +90,17 @@ namespace Server.Regions
|
|||
GuardedRegion reg = from.Region.GetRegion<GuardedRegion>();
|
||||
|
||||
if (reg == null)
|
||||
{
|
||||
from.SendMessage("You are not in a guardable region.");
|
||||
}
|
||||
else
|
||||
{
|
||||
reg.Disabled = !e.GetBoolean(0);
|
||||
|
||||
from.SendMessage(reg.Disabled
|
||||
? "The guards in this region have been disabled."
|
||||
: "The guards in this region have been enabled.");
|
||||
if (reg.Disabled)
|
||||
from.SendMessage("The guards in this region have been disabled.");
|
||||
else
|
||||
from.SendMessage("The guards in this region have been enabled.");
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
@ -190,6 +193,12 @@ namespace Server.Regions
|
|||
CheckGuardCandidate(m);
|
||||
}
|
||||
|
||||
public override void OnExit(Mobile m)
|
||||
{
|
||||
// if (IsDisabled())
|
||||
return;
|
||||
}
|
||||
|
||||
public override void OnSpeech(SpeechEventArgs args)
|
||||
{
|
||||
base.OnSpeech(args);
|
||||
|
|
|
|||
|
|
@ -264,7 +264,9 @@ namespace Server.Regions
|
|||
|
||||
if (entity != null)
|
||||
{
|
||||
m_RemoveList ??= new List<IEntity>();
|
||||
if (m_RemoveList == null)
|
||||
m_RemoveList = new List<IEntity>();
|
||||
|
||||
m_RemoveList.Add(entity);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,7 +15,8 @@ namespace Server.Regions
|
|||
|
||||
public static void EnsureExistence()
|
||||
{
|
||||
m_Instance ??= new SpawnPersistence();
|
||||
if (m_Instance == null)
|
||||
m_Instance = new SpawnPersistence();
|
||||
}
|
||||
|
||||
public override void Serialize(GenericWriter writer)
|
||||
|
|
@ -53,4 +54,4 @@ namespace Server.Regions
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue