Adjust nova mission to new populator (and future ones)
This commit is contained in:
parent
baf2efceea
commit
273b58b9a5
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user