Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
chinhonnang0000 authored Jun 1, 2023
1 parent 382a9ca commit 81137d6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions scripts/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require("planet");
7 changes: 7 additions & 0 deletions scripts/planet.js
Original file line number Diff line number Diff line change
@@ -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();
});

0 comments on commit 81137d6

Please sign in to comment.