Skip to content

Commit

Permalink
#743 and #734 Adds custom json file for custom races.
Browse files Browse the repository at this point in the history
  • Loading branch information
tuomount committed Oct 13, 2024
1 parent 9dc86bb commit f71b689
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ private Government makeById(final String governmentId) {
if (government == null) {
throw new IllegalArgumentException(
"Government factory does not contain "
+ governmentId + " or DECOCRACY.");
+ governmentId + " or DEMOCRACY.");
}
}
return government;
Expand All @@ -101,7 +101,7 @@ private void init() {
governments.clear();
final var basePath = "resources/data/governments/";
final String[] files = {
"base"};
"base", "custom"};
final var governmentsLoaded = loader.loadAll(governments, basePath, files);
ErrorLogger.log("Governments loaded: " + governmentsLoaded);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ private void init() {
final var basePath = "resources/data/spaceraces/";
final String[] files = {
"arthropods", "humanoids", "lithovorians", "robots", "pseudoraces",
"plants"};
"plants", "custom"};
final var spaceRacesLoaded = loader.loadAll(spaceRaces, basePath, files);
ErrorLogger.log("SpaceRaces loaded: " + spaceRacesLoaded);
}
Expand Down

0 comments on commit f71b689

Please sign in to comment.