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

@ -114,11 +114,11 @@ namespace Server.Commands.Generic
{
var entry = m_Responses[i];
@from.SendMessage(entry.ToString());
from.SendMessage(entry.ToString());
if (flushToLog)
{
CommandLogging.WriteLine(@from, entry.ToString());
CommandLogging.WriteLine(from, entry.ToString());
}
}
}
@ -126,7 +126,7 @@ namespace Server.Commands.Generic
{
for (var i = 0; i < m_Failures.Count; ++i)
{
@from.SendMessage(m_Failures[i].ToString());
from.SendMessage(m_Failures[i].ToString());
}
}

View file

@ -234,7 +234,7 @@ namespace Server.Commands.Generic
{
if (echo)
{
gm.SendMessage("{0} : has opened their web browser to : {1}", @from.Name, url);
gm.SendMessage("{0} : has opened their web browser to : {1}", from.Name, url);
}
from.LaunchBrowser(url);
@ -243,7 +243,7 @@ namespace Server.Commands.Generic
{
if (echo)
{
gm.SendMessage("{0} : has chosen not to open their web browser to : {1}", @from.Name, url);
gm.SendMessage("{0} : has chosen not to open their web browser to : {1}", from.Name, url);
}
from.SendMessage("You have chosen not to open your web browser.");
@ -446,7 +446,7 @@ namespace Server.Commands.Generic
if (m_InGump)
{
mob.SendGump(new MessageSentGump(mob, @from.Name, e.ArgString));
mob.SendGump(new MessageSentGump(mob, from.Name, e.ArgString));
}
else
{

View file

@ -188,13 +188,13 @@ namespace Server.Commands.Generic
{
if (m_Foundations.Count == 0)
{
@from.SendMessage(
from.SendMessage(
"The item has been inserted into the house design. Press ESC when you are finished."
);
}
else
{
@from.SendMessage("The item has been inserted into the house design.");
from.SendMessage("The item has been inserted into the house design.");
}
if (!m_Foundations.Contains(house))

View file

@ -99,7 +99,7 @@ namespace Server.Commands.Generic
foreach (var update in parsed)
{
update.Optimize(@from, baseType, ref emitter);
update.Optimize(from, baseType, ref emitter);
}
if (size != args.Length)

View file

@ -49,7 +49,7 @@ namespace Server.Commands.Generic
foreach (var obj in eable)
{
if ((!mobiles || obj is Mobile) && BaseCommand.IsAccessible(@from, obj) && ext.IsValid(obj))
if ((!mobiles || obj is Mobile) && BaseCommand.IsAccessible(from, obj) && ext.IsValid(obj))
{
objs.Add(obj);
}

View file

@ -21,7 +21,7 @@ namespace Server.Commands.Generic
{
if (command.ValidateArgs(this, new CommandEventArgs(from, command.Commands[0], GenerateArgString(args), args)))
{
@from.BeginTarget(
from.BeginTarget(
-1,
command.ObjectTypes == ObjectTypes.All,
TargetFlags.None,

View file

@ -17,7 +17,7 @@ namespace Server.Commands.Generic
{
if (command.ValidateArgs(this, new CommandEventArgs(from, command.Commands[0], GenerateArgString(args), args)))
{
@from.BeginTarget(
from.BeginTarget(
-1,
command.ObjectTypes == ObjectTypes.All,
TargetFlags.None,

View file

@ -46,7 +46,7 @@ namespace Server.Commands.Generic
{
if (command.ValidateArgs(this, new CommandEventArgs(from, command.Commands[0], GenerateArgString(args), args)))
{
@from.BeginTarget(
from.BeginTarget(
-1,
command.ObjectTypes == ObjectTypes.All,
TargetFlags.None,