#W# Auto harvest with in 2 tiles. Easier for Mobile players.
This commit is contained in:
parent
61983993b7
commit
43a0e95879
1 changed files with 16 additions and 1 deletions
|
|
@ -33,6 +33,21 @@ namespace Server.Items
|
|||
OnPicked( from, loc, map );
|
||||
}
|
||||
|
||||
public override bool HandlesOnMovement { get { return true; } }
|
||||
|
||||
public override void OnMovement( Mobile m, Point3D oldLocation )
|
||||
{
|
||||
if ( !m_Picked && m is PlayerMobile && m.Alive )
|
||||
{
|
||||
if ( m.InRange( this.Location, 2 ) && m.InLOS( this ) )
|
||||
{
|
||||
this.OnDoubleClick( m );
|
||||
}
|
||||
}
|
||||
|
||||
base.OnMovement( m, oldLocation );
|
||||
}
|
||||
|
||||
public override bool OnMoveOver( Mobile m )
|
||||
{
|
||||
if ( m is PlayerMobile && m.Alive )
|
||||
|
|
@ -112,4 +127,4 @@ namespace Server.Items
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue