diff --git a/scripts/main.js b/scripts/main.js new file mode 100644 index 0000000..c3482f7 --- /dev/null +++ b/scripts/main.js @@ -0,0 +1 @@ +require("planet"); \ No newline at end of file diff --git a/scripts/planet.js b/scripts/planet.js new file mode 100644 index 0000000..372cad8 --- /dev/null +++ b/scripts/planet.js @@ -0,0 +1,7 @@ +// Change the planet generator +// Using ErekirPlanetGenerator prevents people to generate random sectors +Events.on(ContentInitEvent, e => { + Vars.content.planet("pla-erekis").generator = new ErekirPlanetGenerator(); + Vars.content.planet("pla-serpulp").generator = new SerpuloPlanetGenerator(); + Vars.content.planet("pla-tantrot").generator = new TantrosPlanetGenerator(); +}); \ No newline at end of file