Adjust nova mission to new populator (and future ones)

This commit is contained in:
cim 2013-08-26 14:09:06 +01:00
parent baf2efceea
commit 273b58b9a5
2 changed files with 14 additions and 8 deletions

View File

@ -348,14 +348,18 @@ this.systemWillPopulate = function() // call this as soon as possible so other s
/* the main populator script might have run first. If so, remove
* the ships it added. If it runs after, it'll notice the
* impending nova and not add these lines in the first place */
system.setPopulator("oolite-route1-traders",null);
system.setPopulator("oolite-route2-traders",null);
system.setPopulator("oolite-route1-pirates",null);
system.setPopulator("oolite-route2-pirates",null);
system.setPopulator("oolite-route1-hunters",null);
system.setPopulator("oolite-route2-hunters",null);
system.setPopulator("oolite-route1-thargoids",null);
system.setPopulator("oolite-offlane-hermit",null);
var populator = system.populatorSettings;
var keys = Object.keys(populator);
var key;
while (key = keys.shift())
{
if (key.match(/^oolite-/) && populator[key].priority > 20)
{
// remove it
system.setPopulator(key,null);
}
}
}
}
}

View File

@ -43,6 +43,8 @@ this.systemWillPopulate = function()
{
/* Priority range 0-99 used by Oolite default populator */
// anything added here with priority > 20 will be cancelled by the
// nova mission populator if necessary
/* Add navigation buoys */
// for the compass to work properly, the buoys need to be added first,