mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-08-02 03:15:52 -04:00
Merge pull request #686 from CharonInferar/DantooineSpawns
Dantooine planetary mob and NPC spawns added
This commit is contained in:
@@ -258,6 +258,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);
|
||||
@@ -310,6 +314,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