Fixes code according to modern code style. Fixes a few expression bugs.

This commit is contained in:
Kamron Batman 2018-09-15 09:58:51 -07:00
parent 89eea25e5f
commit 970fd563b2
3324 changed files with 441118 additions and 433755 deletions

View file

@ -22,29 +22,29 @@ using Server.Network;
namespace Server.Targeting
{
public abstract class MultiTarget : Target
{
public int MultiID { get; set; }
public abstract class MultiTarget : Target
{
protected MultiTarget(int multiID, Point3D offset)
: this(multiID, offset, 10, true, TargetFlags.None)
{
}
public Point3D Offset { get; set; }
protected MultiTarget(int multiID, Point3D offset, int range, bool allowGround, TargetFlags flags)
: base(range, allowGround, flags)
{
MultiID = multiID;
Offset = offset;
}
protected MultiTarget( int multiID, Point3D offset )
: this( multiID, offset, 10, true, TargetFlags.None )
{
}
public int MultiID{ get; set; }
protected MultiTarget( int multiID, Point3D offset, int range, bool allowGround, TargetFlags flags )
: base( range, allowGround, flags )
{
MultiID = multiID;
Offset = offset;
}
public Point3D Offset{ get; set; }
public override Packet GetPacketFor( NetState ns )
{
if ( ns.HighSeas )
return new MultiTargetReqHS( this );
return new MultiTargetReq( this );
}
}
public override Packet GetPacketFor(NetState ns)
{
if (ns.HighSeas)
return new MultiTargetReqHS(this);
return new MultiTargetReq(this);
}
}
}