fix: Removes from literals (#893)
This commit is contained in:
parent
63e1b02d93
commit
3cba8c43f8
26 changed files with 32 additions and 32 deletions
|
|
@ -257,7 +257,7 @@ namespace Server.Engines.ConPVP
|
|||
|
||||
public static bool AllowSpecialAbility(Mobile from, string name, bool message)
|
||||
{
|
||||
if (@from is not PlayerMobile pm)
|
||||
if (from is not PlayerMobile pm)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -128,7 +128,7 @@ namespace Server.Engines.Help
|
|||
|
||||
public static bool CheckAllowedToPage(Mobile from)
|
||||
{
|
||||
if (@from is not PlayerMobile pm)
|
||||
if (from is not PlayerMobile pm)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -325,7 +325,7 @@ namespace Server.Engines.MLQuests.Gumps
|
|||
|
||||
public override void OnDoubleClick(Mobile from)
|
||||
{
|
||||
if (@from is not PlayerMobile pm)
|
||||
if (from is not PlayerMobile pm)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ namespace Server.Items
|
|||
|
||||
public override void OnDoubleClick(Mobile from)
|
||||
{
|
||||
if (@from is not PlayerMobile pm || pm.Backpack == null)
|
||||
if (from is not PlayerMobile pm || pm.Backpack == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ namespace Server.Engines.Quests.Necro
|
|||
|
||||
public static bool HasLostCallingScroll(Mobile from)
|
||||
{
|
||||
if (@from is not PlayerMobile pm)
|
||||
if (from is not PlayerMobile pm)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ namespace Server.Engines.Quests.Necro
|
|||
return;
|
||||
}
|
||||
|
||||
if (@from is not PlayerMobile pm)
|
||||
if (from is not PlayerMobile pm)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -99,7 +99,7 @@ namespace Server.Engines.Quests.Ninja
|
|||
|
||||
public static bool HasLostNoteForZoel(Mobile from)
|
||||
{
|
||||
if (@from is not PlayerMobile pm)
|
||||
if (from is not PlayerMobile pm)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
@ -119,7 +119,7 @@ namespace Server.Engines.Quests.Ninja
|
|||
|
||||
public static bool HasLostEminosKatana(Mobile from)
|
||||
{
|
||||
if (@from is not PlayerMobile pm)
|
||||
if (from is not PlayerMobile pm)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -102,7 +102,7 @@ namespace Server.Engines.Quests.Samurai
|
|||
|
||||
public static bool HasLostHaochisKatana(Mobile from)
|
||||
{
|
||||
if (@from is not PlayerMobile pm)
|
||||
if (from is not PlayerMobile pm)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ namespace Server.Engines.Quests.Samurai
|
|||
|
||||
if (!wasBurning && Burning)
|
||||
{
|
||||
if (@from is not PlayerMobile player)
|
||||
if (from is not PlayerMobile player)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -43,10 +43,10 @@ namespace Server.Engines.Quests.Matriarch
|
|||
|
||||
if (redSolen)
|
||||
{
|
||||
return @from is BlackSolenInfiltratorWarrior or BlackSolenInfiltratorQueen;
|
||||
return from is BlackSolenInfiltratorWarrior or BlackSolenInfiltratorQueen;
|
||||
}
|
||||
|
||||
return @from is RedSolenInfiltratorWarrior or RedSolenInfiltratorQueen;
|
||||
return from is RedSolenInfiltratorWarrior or RedSolenInfiltratorQueen;
|
||||
}
|
||||
|
||||
public override void OnKill(BaseCreature creature, Container corpse)
|
||||
|
|
|
|||
|
|
@ -395,7 +395,7 @@ namespace Server.Engines.Quests.Haven
|
|||
public override bool IgnoreYoungProtection(Mobile from)
|
||||
{
|
||||
// This restriction continues until the end of the quest
|
||||
if (@from is Zombie or Skeleton && from.Map == Map.Trammel && from.X >= 3391 && from.X <= 3424 &&
|
||||
if (from is Zombie or Skeleton && from.Map == Map.Trammel && from.X >= 3391 && from.X <= 3424 &&
|
||||
from.Y >= 2639 && from.Y <= 2664) // Haven graveyard
|
||||
{
|
||||
return true;
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ namespace Server.Engines.Quests.Haven
|
|||
|
||||
public static bool HasLostScrollOfPower(Mobile from)
|
||||
{
|
||||
if (@from is not PlayerMobile pm)
|
||||
if (from is not PlayerMobile pm)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
@ -130,7 +130,7 @@ namespace Server.Engines.Quests.Haven
|
|||
|
||||
public static bool HasLostFertileDirt(Mobile from)
|
||||
{
|
||||
if (@from is not PlayerMobile pm)
|
||||
if (from is not PlayerMobile pm)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
@ -150,7 +150,7 @@ namespace Server.Engines.Quests.Haven
|
|||
|
||||
public static bool HasLostDaemonBlood(Mobile from)
|
||||
{
|
||||
if (@from is not PlayerMobile pm)
|
||||
if (from is not PlayerMobile pm)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
@ -170,7 +170,7 @@ namespace Server.Engines.Quests.Haven
|
|||
|
||||
public static bool HasLostDaemonBone(Mobile from)
|
||||
{
|
||||
if (@from is not PlayerMobile pm)
|
||||
if (from is not PlayerMobile pm)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue