mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-08-02 03:15:52 -04:00
Dantooine-wide spawns added with Planetary Spawn Tool
Considering the combat level ranges from live, the planet's surface has been covered with spawn areas for various mobs and NPCs. A small as possible count of collidables was used to save server resources while still being able to realize the spawns.
This commit is contained in:
@@ -256,6 +256,10 @@ public class SpawnService {
|
||||
lairObject.setMaximumCondition(1000 * level);
|
||||
|
||||
LairActor lairActor = new LairActor(lairObject, lairTemplate.getMobileName(), 10, level);
|
||||
|
||||
if (lairTemplate.getMobiles()!=null)
|
||||
lairActor = new LairActor(lairObject, lairTemplate.getMobiles(), 10, level);
|
||||
|
||||
lairObject.setAttachment("AI", lairActor);
|
||||
|
||||
core.simulationService.add(lairObject, position.x, position.z, true);
|
||||
@@ -308,6 +312,10 @@ public class SpawnService {
|
||||
lairTemplates.put(name, new LairTemplate(name, mobile, mobileLimit, lairCRC));
|
||||
}
|
||||
|
||||
public void addLairTemplate(String name, Vector<String> mobiles, int mobileLimit, String lairCRC) {
|
||||
lairTemplates.put(name, new LairTemplate(name, mobiles, mobileLimit, lairCRC));
|
||||
}
|
||||
|
||||
public void loadLairGroups() {
|
||||
Path p = Paths.get("scripts/mobiles/lairgroups");
|
||||
FileVisitor<Path> fv = new SimpleFileVisitor<Path>() {
|
||||
|
||||
Reference in New Issue
Block a user