#W# Auto harvest with in 2 tiles. Easier for Mobile players.

This commit is contained in:
WarrentyExpired 2026-07-15 11:55:23 -04:00
parent 61983993b7
commit 43a0e95879

View file

@ -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
}
}
}
}
}