Organized spawn folders to match newer branches.
This commit is contained in:
parent
deaefac8ce
commit
aa520ca56a
@ -53,7 +53,7 @@ public class TarBeetleSpawn implements IGameXmlReader
|
|||||||
@Override
|
@Override
|
||||||
public void load()
|
public void load()
|
||||||
{
|
{
|
||||||
parseDatapackFile("data/spawnZones/tar_beetle.xml");
|
parseDatapackFile("data/scripts/ai/npc/ForgeOfTheGods/tar_beetle.xml");
|
||||||
if (!zones.isEmpty())
|
if (!zones.isEmpty())
|
||||||
{
|
{
|
||||||
spawnTask = ThreadPool.scheduleAtFixedRate(() -> zones.forEach(SpawnZone::refreshSpawn), 1000, 60000);
|
spawnTask = ThreadPool.scheduleAtFixedRate(() -> zones.forEach(SpawnZone::refreshSpawn), 1000, 60000);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/tar_beetle.xsd">
|
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../xsd/tar_beetle.xsd">
|
||||||
<!-- Forge of the Gods lower level - Spawn Zones -->
|
<!-- Forge of the Gods lower level - Spawn Zones -->
|
||||||
<spawnZone maxNpcCount="4">
|
<spawnZone maxNpcCount="4">
|
||||||
<zone minZ="-5565" maxZ="-5365">
|
<zone minZ="-5565" maxZ="-5365">
|
@ -253,7 +253,7 @@ public final class FinalEmperialTomb extends AbstractInstance implements IGameXm
|
|||||||
_spawnCount = 0;
|
_spawnCount = 0;
|
||||||
_spawnList.clear();
|
_spawnList.clear();
|
||||||
_spawnZoneList.clear();
|
_spawnZoneList.clear();
|
||||||
parseDatapackFile("data/spawnZones/final_emperial_tomb.xml");
|
parseDatapackFile("data/scripts/instances/FinalEmperialTomb/final_emperial_tomb.xml");
|
||||||
_log.info("[Final Emperial Tomb] Loaded " + _spawnZoneList.size() + " spawn zones data.");
|
_log.info("[Final Emperial Tomb] Loaded " + _spawnZoneList.size() + " spawn zones data.");
|
||||||
_log.info("[Final Emperial Tomb] Loaded " + _spawnCount + " spawns data.");
|
_log.info("[Final Emperial Tomb] Loaded " + _spawnCount + " spawns data.");
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/spawnZones.xsd">
|
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../xsd/spawnZones.xsd">
|
||||||
<spawnZones>
|
<spawnZones>
|
||||||
<zone id="0" minZ="-9220" maxZ="-8920">
|
<zone id="0" minZ="-9220" maxZ="-8920">
|
||||||
<point x="-87956" y="-151907" />
|
<point x="-87956" y="-151907" />
|
@ -1,6 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<list enabled="false" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/spawnlist.xsd">
|
|
||||||
<spawn zone="spawn_zone_test_01">
|
|
||||||
<npc id="20550" count="3" respawnDelay="15" respawnRandom="5" />
|
|
||||||
</spawn>
|
|
||||||
</list>
|
|
@ -1,7 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<list enabled="false" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/zones.xsd">
|
|
||||||
<zone name="spawn_zone_test_01" type="NpcSpawnTerritory" shape="Cuboid" minZ="-3734" maxZ="-3689">
|
|
||||||
<node X="75552" Y="142899" />
|
|
||||||
<node X="76887" Y="144333" />
|
|
||||||
</zone>
|
|
||||||
</list>
|
|
@ -77,7 +77,7 @@ public final class SpawnTable implements IGameXmlReader
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Load XML list
|
// Load XML list
|
||||||
parseDatapackDirectory("data/spawnlist", false);
|
parseDatapackDirectory("data/spawns", false);
|
||||||
LOGGER.info(getClass().getSimpleName() + ": Loaded " + _xmlSpawnCount + " npc spawns from XML.");
|
LOGGER.info(getClass().getSimpleName() + ": Loaded " + _xmlSpawnCount + " npc spawns from XML.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -378,7 +378,7 @@ public final class ZoneManager implements IGameXmlReader
|
|||||||
_classZones.clear();
|
_classZones.clear();
|
||||||
_spawnTerritories.clear();
|
_spawnTerritories.clear();
|
||||||
parseDatapackDirectory("data/zones", false);
|
parseDatapackDirectory("data/zones", false);
|
||||||
parseDatapackDirectory("data/zones/npcSpawnTerritories", false);
|
parseDatapackDirectory("data/zones/spawnZones", false);
|
||||||
LOGGER.info(getClass().getSimpleName() + ": Loaded " + _classZones.size() + " zone classes and " + getSize() + " zones.");
|
LOGGER.info(getClass().getSimpleName() + ": Loaded " + _classZones.size() + " zone classes and " + getSize() + " zones.");
|
||||||
LOGGER.info(getClass().getSimpleName() + ": Loaded " + _spawnTerritories.size() + " NPC spawn territoriers.");
|
LOGGER.info(getClass().getSimpleName() + ": Loaded " + _spawnTerritories.size() + " NPC spawn territoriers.");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user