From 81137d6271940ad82262f35df1d614d2146a5f2b Mon Sep 17 00:00:00 2001 From: chinhonnang0000 <106854561+chinhonnang0000@users.noreply.github.com> Date: Thu, 1 Jun 2023 10:19:34 +0800 Subject: [PATCH] Add files via upload --- scripts/main.js | 1 + scripts/planet.js | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 scripts/main.js create mode 100644 scripts/planet.js 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