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

@ -60,7 +60,7 @@ namespace Server.Items
public void Throw(Mobile from)
{
if (@from.Weapon is not BaseKnife knife)
if (from.Weapon is not BaseKnife knife)
{
from.LocalOverheadMessage(MessageType.Regular, 0x3B2, 500751); // Try holding a knife...
return;

View file

@ -1054,7 +1054,7 @@ namespace Server.Items
return;
}
if (@from is not PlayerMobile player)
if (from is not PlayerMobile player)
{
return;
}

View file

@ -168,7 +168,7 @@ namespace Server.Items
return;
}
if (@from is not PlayerMobile pm)
if (from is not PlayerMobile pm)
{
return;
}

View file

@ -299,7 +299,7 @@ namespace Server.Items
private bool HasEntered(Mobile from)
{
if (@from.Account is not Account acc)
if (from.Account is not Account acc)
{
return false;
}
@ -509,7 +509,7 @@ namespace Server.Items
return;
}
if (@from.Account is not Account)
if (from.Account is not Account)
{
return;
}

View file

@ -167,7 +167,7 @@ namespace Server.Items
return false;
}
if (Account != null && (@from.Account is not Accounting.Account || from.Account.Username != Account))
if (Account != null && (from.Account is not Accounting.Account || from.Account.Username != Account))
{
from.SendLocalizedMessage(
1070714

View file

@ -244,7 +244,7 @@ namespace Server.Items
public virtual void DoWandTarget(Mobile from, object o)
{
if (Deleted || _charges <= 0 || Parent != @from || o is StaticTarget or LandTarget)
if (Deleted || _charges <= 0 || Parent != from || o is StaticTarget or LandTarget)
{
return;
}