Fixes code according to modern code style. Fixes a few expression bugs.
This commit is contained in:
parent
89eea25e5f
commit
970fd563b2
3324 changed files with 441118 additions and 433755 deletions
|
|
@ -1,38 +1,38 @@
|
|||
using Server.Targeting;
|
||||
using Server.Gumps;
|
||||
using Server.Targeting;
|
||||
|
||||
namespace Server.Commands
|
||||
{
|
||||
public class Skills
|
||||
{
|
||||
public static void Initialize()
|
||||
{
|
||||
Register();
|
||||
}
|
||||
public class Skills
|
||||
{
|
||||
public static void Initialize()
|
||||
{
|
||||
Register();
|
||||
}
|
||||
|
||||
public static void Register()
|
||||
{
|
||||
CommandSystem.Register( "Skills", AccessLevel.Counselor, Skills_OnCommand );
|
||||
}
|
||||
public static void Register()
|
||||
{
|
||||
CommandSystem.Register("Skills", AccessLevel.Counselor, Skills_OnCommand);
|
||||
}
|
||||
|
||||
private class SkillsTarget : Target
|
||||
{
|
||||
public SkillsTarget( ) : base( -1, true, TargetFlags.None )
|
||||
{
|
||||
}
|
||||
[Usage("Skills")]
|
||||
[Description("Opens a menu where you can view or edit skills of a targeted mobile.")]
|
||||
private static void Skills_OnCommand(CommandEventArgs e)
|
||||
{
|
||||
e.Mobile.Target = new SkillsTarget();
|
||||
}
|
||||
|
||||
protected override void OnTarget( Mobile from, object o )
|
||||
{
|
||||
if ( o is Mobile mobile )
|
||||
from.SendGump( new SkillsGump( from, mobile ) );
|
||||
}
|
||||
}
|
||||
private class SkillsTarget : Target
|
||||
{
|
||||
public SkillsTarget() : base(-1, true, TargetFlags.None)
|
||||
{
|
||||
}
|
||||
|
||||
[Usage( "Skills" )]
|
||||
[Description( "Opens a menu where you can view or edit skills of a targeted mobile." )]
|
||||
private static void Skills_OnCommand( CommandEventArgs e )
|
||||
{
|
||||
e.Mobile.Target = new SkillsTarget();
|
||||
}
|
||||
}
|
||||
}
|
||||
protected override void OnTarget(Mobile from, object o)
|
||||
{
|
||||
if (o is Mobile mobile)
|
||||
from.SendGump(new SkillsGump(from, mobile));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue