Removes literal variables (#257)

This commit is contained in:
Kamron Batman 2020-09-18 18:41:26 -07:00 • committed by GitHub
parent 580da8a0cc
commit 4d6e584b6c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
359 changed files with 1306 additions and 1306 deletions

View file

@ -22,14 +22,14 @@ namespace Server.Spells.Ninjitsu
if (handOne != null && !(handOne is BaseRanged))
{
return base.Validate(@from);
return base.Validate(from);
}
Item handTwo = from.FindItemOnLayer(Layer.TwoHanded) as BaseWeapon;
if (handTwo != null && !(handTwo is BaseRanged))
{
return base.Validate(@from);
return base.Validate(from);
}
from.SendLocalizedMessage(1063097); // You must be wielding a melee weapon without a shield to use this ability.

View file

@ -35,7 +35,7 @@ namespace Server.Items
{
if (InvalidTransferMessage != null)
{
TextDefinition.SendMessageTo(@from, InvalidTransferMessage);
TextDefinition.SendMessageTo(from, InvalidTransferMessage);
}
Delete();

View file

@ -27,7 +27,7 @@ namespace Server.Spells
}
else
{
@from.SendLocalizedMessage(501805); // That rune is not yet marked.
from.SendLocalizedMessage(501805); // That rune is not yet marked.
}
}
else if (o is Runebook runebook)
@ -40,7 +40,7 @@ namespace Server.Spells
}
else
{
@from.SendLocalizedMessage(502354); // Target is not marked.
from.SendLocalizedMessage(502354); // Target is not marked.
}
}
else if (m_ToBoat && o is Key key && key.KeyValue != 0 && key.Link is BaseBoat boat)
@ -51,15 +51,15 @@ namespace Server.Spells
}
else
{
@from.Send(
from.Send(
new MessageLocalized(
@from.Serial,
@from.Body,
from.Serial,
from.Body,
MessageType.Regular,
0x3B2,
3,
502357,
@from.Name,
from.Name,
""
)
); // I can not recall from that object.