Default value for Spawn chase range should be set to 0.

This commit is contained in:
MobiusDevelopment
2022-08-14 21:04:53 +00:00
parent 1501be0179
commit d525e6007a
28 changed files with 103 additions and 3 deletions

View File

@@ -536,6 +536,10 @@ public class Spawn extends Location implements IIdentifiable, INamable
public int getChaseRange() public int getChaseRange()
{ {
if (_spawnTemplate == null)
{
return 0;
}
return _spawnTemplate.getChaseRange(); return _spawnTemplate.getChaseRange();
} }

View File

@@ -536,6 +536,10 @@ public class Spawn extends Location implements IIdentifiable, INamable
public int getChaseRange() public int getChaseRange()
{ {
if (_spawnTemplate == null)
{
return 0;
}
return _spawnTemplate.getChaseRange(); return _spawnTemplate.getChaseRange();
} }

View File

@@ -536,6 +536,10 @@ public class Spawn extends Location implements IIdentifiable, INamable
public int getChaseRange() public int getChaseRange()
{ {
if (_spawnTemplate == null)
{
return 0;
}
return _spawnTemplate.getChaseRange(); return _spawnTemplate.getChaseRange();
} }

View File

@@ -536,6 +536,10 @@ public class Spawn extends Location implements IIdentifiable, INamable
public int getChaseRange() public int getChaseRange()
{ {
if (_spawnTemplate == null)
{
return 0;
}
return _spawnTemplate.getChaseRange(); return _spawnTemplate.getChaseRange();
} }

View File

@@ -536,6 +536,10 @@ public class Spawn extends Location implements IIdentifiable, INamable
public int getChaseRange() public int getChaseRange()
{ {
if (_spawnTemplate == null)
{
return 0;
}
return _spawnTemplate.getChaseRange(); return _spawnTemplate.getChaseRange();
} }

View File

@@ -536,6 +536,10 @@ public class Spawn extends Location implements IIdentifiable, INamable
public int getChaseRange() public int getChaseRange()
{ {
if (_spawnTemplate == null)
{
return 0;
}
return _spawnTemplate.getChaseRange(); return _spawnTemplate.getChaseRange();
} }

View File

@@ -536,6 +536,10 @@ public class Spawn extends Location implements IIdentifiable, INamable
public int getChaseRange() public int getChaseRange()
{ {
if (_spawnTemplate == null)
{
return 0;
}
return _spawnTemplate.getChaseRange(); return _spawnTemplate.getChaseRange();
} }

View File

@@ -536,6 +536,10 @@ public class Spawn extends Location implements IIdentifiable, INamable
public int getChaseRange() public int getChaseRange()
{ {
if (_spawnTemplate == null)
{
return 0;
}
return _spawnTemplate.getChaseRange(); return _spawnTemplate.getChaseRange();
} }

View File

@@ -536,6 +536,10 @@ public class Spawn extends Location implements IIdentifiable, INamable
public int getChaseRange() public int getChaseRange()
{ {
if (_spawnTemplate == null)
{
return 0;
}
return _spawnTemplate.getChaseRange(); return _spawnTemplate.getChaseRange();
} }

View File

@@ -536,6 +536,10 @@ public class Spawn extends Location implements IIdentifiable, INamable
public int getChaseRange() public int getChaseRange()
{ {
if (_spawnTemplate == null)
{
return 0;
}
return _spawnTemplate.getChaseRange(); return _spawnTemplate.getChaseRange();
} }

View File

@@ -536,6 +536,10 @@ public class Spawn extends Location implements IIdentifiable, INamable
public int getChaseRange() public int getChaseRange()
{ {
if (_spawnTemplate == null)
{
return 0;
}
return _spawnTemplate.getChaseRange(); return _spawnTemplate.getChaseRange();
} }

View File

@@ -536,6 +536,10 @@ public class Spawn extends Location implements IIdentifiable, INamable
public int getChaseRange() public int getChaseRange()
{ {
if (_spawnTemplate == null)
{
return 0;
}
return _spawnTemplate.getChaseRange(); return _spawnTemplate.getChaseRange();
} }

View File

@@ -72,7 +72,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
/** Maximum respawn delay */ /** Maximum respawn delay */
private int _respawnMaxDelay; private int _respawnMaxDelay;
/** Maximum distance monsters can be pulled away from spawn. */ /** Maximum distance monsters can be pulled away from spawn. */
private int _chaseRange; private int _chaseRange = 0;
/** The generic constructor of Npc managed by this Spawn */ /** The generic constructor of Npc managed by this Spawn */
private Constructor<? extends Npc> _constructor; private Constructor<? extends Npc> _constructor;
/** If True an Npc is respawned each time that another is killed */ /** If True an Npc is respawned each time that another is killed */

View File

@@ -72,7 +72,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
/** Maximum respawn delay */ /** Maximum respawn delay */
private int _respawnMaxDelay; private int _respawnMaxDelay;
/** Maximum distance monsters can be pulled away from spawn. */ /** Maximum distance monsters can be pulled away from spawn. */
private int _chaseRange; private int _chaseRange = 0;
/** The generic constructor of Npc managed by this Spawn */ /** The generic constructor of Npc managed by this Spawn */
private Constructor<? extends Npc> _constructor; private Constructor<? extends Npc> _constructor;
/** If True an Npc is respawned each time that another is killed */ /** If True an Npc is respawned each time that another is killed */

View File

@@ -72,7 +72,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
/** Maximum respawn delay */ /** Maximum respawn delay */
private int _respawnMaxDelay; private int _respawnMaxDelay;
/** Maximum distance monsters can be pulled away from spawn. */ /** Maximum distance monsters can be pulled away from spawn. */
private int _chaseRange; private int _chaseRange = 0;
/** The generic constructor of Npc managed by this Spawn */ /** The generic constructor of Npc managed by this Spawn */
private Constructor<? extends Npc> _constructor; private Constructor<? extends Npc> _constructor;
/** If True an Npc is respawned each time that another is killed */ /** If True an Npc is respawned each time that another is killed */

View File

@@ -536,6 +536,10 @@ public class Spawn extends Location implements IIdentifiable, INamable
public int getChaseRange() public int getChaseRange()
{ {
if (_spawnTemplate == null)
{
return 0;
}
return _spawnTemplate.getChaseRange(); return _spawnTemplate.getChaseRange();
} }

View File

@@ -536,6 +536,10 @@ public class Spawn extends Location implements IIdentifiable, INamable
public int getChaseRange() public int getChaseRange()
{ {
if (_spawnTemplate == null)
{
return 0;
}
return _spawnTemplate.getChaseRange(); return _spawnTemplate.getChaseRange();
} }

View File

@@ -536,6 +536,10 @@ public class Spawn extends Location implements IIdentifiable, INamable
public int getChaseRange() public int getChaseRange()
{ {
if (_spawnTemplate == null)
{
return 0;
}
return _spawnTemplate.getChaseRange(); return _spawnTemplate.getChaseRange();
} }

View File

@@ -536,6 +536,10 @@ public class Spawn extends Location implements IIdentifiable, INamable
public int getChaseRange() public int getChaseRange()
{ {
if (_spawnTemplate == null)
{
return 0;
}
return _spawnTemplate.getChaseRange(); return _spawnTemplate.getChaseRange();
} }

View File

@@ -536,6 +536,10 @@ public class Spawn extends Location implements IIdentifiable, INamable
public int getChaseRange() public int getChaseRange()
{ {
if (_spawnTemplate == null)
{
return 0;
}
return _spawnTemplate.getChaseRange(); return _spawnTemplate.getChaseRange();
} }

View File

@@ -536,6 +536,10 @@ public class Spawn extends Location implements IIdentifiable, INamable
public int getChaseRange() public int getChaseRange()
{ {
if (_spawnTemplate == null)
{
return 0;
}
return _spawnTemplate.getChaseRange(); return _spawnTemplate.getChaseRange();
} }

View File

@@ -536,6 +536,10 @@ public class Spawn extends Location implements IIdentifiable, INamable
public int getChaseRange() public int getChaseRange()
{ {
if (_spawnTemplate == null)
{
return 0;
}
return _spawnTemplate.getChaseRange(); return _spawnTemplate.getChaseRange();
} }

View File

@@ -536,6 +536,10 @@ public class Spawn extends Location implements IIdentifiable, INamable
public int getChaseRange() public int getChaseRange()
{ {
if (_spawnTemplate == null)
{
return 0;
}
return _spawnTemplate.getChaseRange(); return _spawnTemplate.getChaseRange();
} }

View File

@@ -536,6 +536,10 @@ public class Spawn extends Location implements IIdentifiable, INamable
public int getChaseRange() public int getChaseRange()
{ {
if (_spawnTemplate == null)
{
return 0;
}
return _spawnTemplate.getChaseRange(); return _spawnTemplate.getChaseRange();
} }

View File

@@ -536,6 +536,10 @@ public class Spawn extends Location implements IIdentifiable, INamable
public int getChaseRange() public int getChaseRange()
{ {
if (_spawnTemplate == null)
{
return 0;
}
return _spawnTemplate.getChaseRange(); return _spawnTemplate.getChaseRange();
} }

View File

@@ -536,6 +536,10 @@ public class Spawn extends Location implements IIdentifiable, INamable
public int getChaseRange() public int getChaseRange()
{ {
if (_spawnTemplate == null)
{
return 0;
}
return _spawnTemplate.getChaseRange(); return _spawnTemplate.getChaseRange();
} }

View File

@@ -536,6 +536,10 @@ public class Spawn extends Location implements IIdentifiable, INamable
public int getChaseRange() public int getChaseRange()
{ {
if (_spawnTemplate == null)
{
return 0;
}
return _spawnTemplate.getChaseRange(); return _spawnTemplate.getChaseRange();
} }

View File

@@ -536,6 +536,10 @@ public class Spawn extends Location implements IIdentifiable, INamable
public int getChaseRange() public int getChaseRange()
{ {
if (_spawnTemplate == null)
{
return 0;
}
return _spawnTemplate.getChaseRange(); return _spawnTemplate.getChaseRange();
} }