fix: Removes from literals (#893)

This commit is contained in:
Kamron Batman 2021-12-24 15:56:07 -08:00 • committed by GitHub
parent 63e1b02d93
commit 3cba8c43f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 32 additions and 32 deletions

View file

@ -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;
}

View file

@ -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;
}

View file

@ -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;
}

View file

@ -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;
}

View file

@ -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;
}

View file

@ -31,7 +31,7 @@ namespace Server.Engines.Quests.Necro
return;
}
if (@from is not PlayerMobile pm)
if (from is not PlayerMobile pm)
{
return;
}

View file

@ -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;
}

View file

@ -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;
}

View file

@ -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;
}

View file

@ -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)

View file

@ -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;

View file

@ -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;
}