Fixes brace style (#248)
This commit is contained in:
parent
a236617ad9
commit
8149620b0c
1503 changed files with 28575 additions and 1717 deletions
|
|
@ -20,13 +20,15 @@ namespace Server.Commands.Generic
|
|||
public override void Process(Mobile from, BaseCommand command, string[] args)
|
||||
{
|
||||
if (command.ValidateArgs(this, new CommandEventArgs(from, command.Commands[0], GenerateArgString(args), args)))
|
||||
from.BeginTarget(
|
||||
{
|
||||
@from.BeginTarget(
|
||||
-1,
|
||||
command.ObjectTypes == ObjectTypes.All,
|
||||
TargetFlags.None,
|
||||
(m, targeted, a) => OnTarget(m, targeted, command, a),
|
||||
args
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
public void OnTarget(Mobile from, object targeted, BaseCommand command, string[] args)
|
||||
|
|
@ -38,7 +40,9 @@ namespace Server.Commands.Generic
|
|||
}
|
||||
|
||||
if (command.ObjectTypes == ObjectTypes.Mobiles)
|
||||
{
|
||||
return; // sanity check
|
||||
}
|
||||
|
||||
if (!(targeted is Container cont))
|
||||
{
|
||||
|
|
@ -51,7 +55,9 @@ namespace Server.Commands.Generic
|
|||
var ext = Extensions.Parse(from, ref args);
|
||||
|
||||
if (!CheckObjectTypes(from, command, ext, out var items, out var _))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (!items)
|
||||
{
|
||||
|
|
@ -62,8 +68,12 @@ namespace Server.Commands.Generic
|
|||
var list = new List<object>();
|
||||
|
||||
foreach (var item in cont.FindItemsByType<Item>())
|
||||
{
|
||||
if (ext.IsValid(item))
|
||||
{
|
||||
list.Add(item);
|
||||
}
|
||||
}
|
||||
|
||||
ext.Filter(list);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue