From 63f23b76299a7d20c4a0a5394546999087ec9a25 Mon Sep 17 00:00:00 2001 From: cim Date: Fri, 14 Mar 2014 13:02:21 +0000 Subject: [PATCH] Adjust Thargoid appearance in IS space --- Resources/Scripts/oolite-populator.js | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/Resources/Scripts/oolite-populator.js b/Resources/Scripts/oolite-populator.js index 8615d9b1..7116be19 100644 --- a/Resources/Scripts/oolite-populator.js +++ b/Resources/Scripts/oolite-populator.js @@ -1271,16 +1271,19 @@ this.interstellarSpaceWillPopulate = function() this.interstellarSpaceWillRepopulate = function() { - if (system.countShipsWithPrimaryRole("thargoid") < 2) + if (Math.random() < 0.25) { - if (Math.random() > 0.01) + if (system.countShipsWithPrimaryRole("thargoid") < 3) { - system.addShips("thargoid",1,[0,0,0],25600); - } - else - { - // everyone's getting ambushed today - system.addShips("trader",1,[0,0,0],6400); + if (Math.random() > 0.05) + { + system.addShips("thargoid",1+Math.floor(Math.random()*3),[0,0,0],25600); + } + else + { + // everyone's getting ambushed today + system.addShips("trader",1,[0,0,0],6400); + } } } }