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
|
|
@ -143,7 +143,7 @@ namespace Server.Items
|
|||
|
||||
public override void OnDoubleClick(Mobile from)
|
||||
{
|
||||
if (from.Region.IsPartOf(typeof(Jail)))
|
||||
if (from.Region.IsPartOf<Jail>())
|
||||
from.SendMessage("You may not do that in jail.");
|
||||
else if (!IsChildOf(from.Backpack))
|
||||
MessageHelper.SendLocalizedMessageTo(this, from, 1062334,
|
||||
|
|
@ -226,7 +226,7 @@ namespace Server.Items
|
|||
if (m_Bag.Deleted)
|
||||
return;
|
||||
|
||||
if (from.Region.IsPartOf(typeof(Jail)))
|
||||
if (from.Region.IsPartOf<Jail>())
|
||||
{
|
||||
from.SendMessage("You may not do that in jail.");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -201,8 +201,8 @@ namespace Server.Items
|
|||
MessageHelper.SendLocalizedMessageTo(this, from, 1054127,
|
||||
0x22); // The Crystal Ball fills with a red mist. You appear to have let your bond to your pet deteriorate.
|
||||
}
|
||||
else if (from.Map == Map.Ilshenar || from.Region.IsPartOf(typeof(DungeonRegion)) ||
|
||||
from.Region.IsPartOf(typeof(Jail)) || from.Region.IsPartOf(typeof(SafeZone)))
|
||||
else if (from.Map == Map.Ilshenar || from.Region.IsPartOf<DungeonRegion>() ||
|
||||
from.Region.IsPartOf<Jail>() || from.Region.IsPartOf<SafeZone>())
|
||||
{
|
||||
from.Send(new AsciiMessage(Serial, ItemID, MessageType.Regular, 0x22, 3, "",
|
||||
"You cannot summon your pet to this location."));
|
||||
|
|
@ -438,7 +438,7 @@ namespace Server.Items
|
|||
public void Stop()
|
||||
{
|
||||
m_Stop = true;
|
||||
Disturb(DisturbType.Hurt, false, false);
|
||||
Disturb(DisturbType.Hurt, false);
|
||||
}
|
||||
|
||||
public override bool CheckDisturb(DisturbType type, bool checkFirst, bool resistable)
|
||||
|
|
|
|||
|
|
@ -255,13 +255,13 @@ namespace Server.Items
|
|||
return false;
|
||||
}
|
||||
|
||||
if (from.Region.IsPartOf(typeof(Jail)))
|
||||
if (from.Region.IsPartOf<Jail>())
|
||||
{
|
||||
from.SendLocalizedMessage(1114345, "", 0x35); // You'll need a better jailbreak plan than that!
|
||||
return false;
|
||||
}
|
||||
|
||||
if (boundRoot.Region.IsPartOf(typeof(Jail)))
|
||||
if (boundRoot.Region.IsPartOf<Jail>())
|
||||
{
|
||||
from.SendLocalizedMessage(1019004); // You are not allowed to travel there.
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue