Minor PlayerInstance timed hunting zone related improvements.

This commit is contained in:
MobiusDevelopment
2020-01-23 10:53:14 +00:00
parent b8cc866ebc
commit 86b672924c
2 changed files with 9 additions and 19 deletions

View File

@@ -14235,19 +14235,11 @@ public class PlayerInstance extends Playable
{
case 1: // Storm Isle
{
if ((x == 25) && (y == 23))
{
return true;
}
break;
return (x == 25) && (y == 23);
}
case 6: // Primeval Isle
{
if ((x == 20) && (y == 17))
{
return true;
}
break;
return (x == 20) && (y == 17);
}
}
@@ -14256,10 +14248,11 @@ public class PlayerInstance extends Playable
public void startTimedHuntingZone(int zoneId, long delay)
{
// Stop previous task.
stopTimedHuntingZoneTask();
// TODO: Delay window.
// sendPacket(new TimedHuntingZoneEnter((int) (delay / 60 / 1000)));
// For now close window.
sendPacket(TimedHuntingZoneExit.STATIC_PACKET);
_timedHuntingZoneFinishTask = ThreadPool.schedule(() ->
{

View File

@@ -14180,11 +14180,7 @@ public class PlayerInstance extends Playable
{
case 2: // Ancient Pirates' Tomb.
{
if ((x == 20) && (y == 15))
{
return true;
}
break;
return (x == 20) && (y == 15);
}
}
@@ -14193,10 +14189,11 @@ public class PlayerInstance extends Playable
public void startTimedHuntingZone(int zoneId, long delay)
{
// Stop previous task.
stopTimedHuntingZoneTask();
// TODO: Delay window.
// sendPacket(new TimedHuntingZoneEnter((int) (delay / 60 / 1000)));
// For now close window.
sendPacket(TimedHuntingZoneExit.STATIC_PACKET);
_timedHuntingZoneFinishTask = ThreadPool.schedule(() ->
{