Modernization Fixes & Updates to Default Values (#3)
This commit is contained in:
parent
445eddff68
commit
dcf64091b1
768 changed files with 10507 additions and 14196 deletions
|
|
@ -77,8 +77,7 @@ namespace Server.Engines.Quests
|
|||
|
||||
--Charges;
|
||||
|
||||
m_PlayTimer = Timer.DelayCall(TimeSpan.FromSeconds(5.0), new TimerStateCallback(PlayTimer_Callback),
|
||||
from);
|
||||
m_PlayTimer = Timer.DelayCall(TimeSpan.FromSeconds(5.0), () => PlayTimer_Callback(from));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -91,10 +90,8 @@ namespace Server.Engines.Quests
|
|||
}
|
||||
}
|
||||
|
||||
public virtual void PlayTimer_Callback(object state)
|
||||
public virtual void PlayTimer_Callback(Mobile from)
|
||||
{
|
||||
Mobile from = (Mobile)state;
|
||||
|
||||
m_PlayTimer = null;
|
||||
|
||||
HornOfRetreatMoongate gate = new HornOfRetreatMoongate(DestLoc, DestMap, from, Hue);
|
||||
|
|
@ -168,7 +165,7 @@ namespace Server.Engines.Quests
|
|||
|
||||
public override void UseGate(Mobile m)
|
||||
{
|
||||
if (m.Region.IsPartOf(typeof(Jail)))
|
||||
if (m.Region.IsPartOf<Jail>())
|
||||
{
|
||||
m.SendLocalizedMessage(1114345); // You'll need a better jailbreak plan than that!
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue