Removes implicit this.
This commit is contained in:
parent
04b4cfe75b
commit
83dcf536d8
533 changed files with 2804 additions and 2806 deletions
|
|
@ -5,9 +5,9 @@ namespace Server.Items
|
|||
public class DartBoard : AddonComponent
|
||||
{
|
||||
public override bool NeedsWall => true;
|
||||
public override Point3D WallPosition => this.East ? new Point3D( -1, 0, 0 ) : new Point3D( 0, -1, 0 );
|
||||
public override Point3D WallPosition => East ? new Point3D( -1, 0, 0 ) : new Point3D( 0, -1, 0 );
|
||||
|
||||
public bool East => this.ItemID == 0x1E2F;
|
||||
public bool East => ItemID == 0x1E2F;
|
||||
|
||||
[Constructible]
|
||||
public DartBoard() : this( true )
|
||||
|
|
@ -26,9 +26,9 @@ namespace Server.Items
|
|||
public override void OnDoubleClick( Mobile from )
|
||||
{
|
||||
Direction dir;
|
||||
if ( from.Location != this.Location )
|
||||
if ( from.Location != Location )
|
||||
dir = from.GetDirectionTo( this );
|
||||
else if ( this.East )
|
||||
else if ( East )
|
||||
dir = Direction.West;
|
||||
else
|
||||
dir = Direction.North;
|
||||
|
|
@ -39,7 +39,7 @@ namespace Server.Items
|
|||
|
||||
if ( !from.InRange( this, 4 ) || !from.InLOS( this ) )
|
||||
canThrow = false;
|
||||
else if ( this.East )
|
||||
else if ( East )
|
||||
canThrow = ( dir == Direction.Left || dir == Direction.West || dir == Direction.Up );
|
||||
else
|
||||
canThrow = ( dir == Direction.Up || dir == Direction.North || dir == Direction.Right );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue