Skip to content

Commit

Permalink
Merge pull request #1138 from solaris-games/feature/huge-galaxies
Browse files Browse the repository at this point in the history
Allow 1500 stars
  • Loading branch information
SpacialCircumstances authored Aug 26, 2024
2 parents bfd7b3d + de1d6a8 commit 4f29b18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/services/gameCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ export default class GameCreateService {
throw new ValidationError(`Cannot create a galaxy of ${desiredStarCount} stars with ${game.settings.player.startingStars} stars per player.`);
}

if (desiredStarCount > 1000) {
throw new ValidationError(`Galaxy size cannot exceed 1000 stars.`);
if (desiredStarCount > 1500) {
throw new ValidationError(`Galaxy size cannot exceed 1500 stars.`);
}
} else {
// TODO: Validation needs to be better and in one place. Also, we should provide a schema
Expand Down

0 comments on commit 4f29b18

Please sign in to comment.