Skip to content

Commit

Permalink
Merge branch 'phillip/max_values' into delta
Browse files Browse the repository at this point in the history
  • Loading branch information
SabreCat committed Jul 11, 2023
2 parents c9fba14 + 5e0c9b8 commit 681fc96
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions website/common/script/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ export const MAX_HEALTH = 50;
export const MAX_LEVEL = 100;
export const MAX_STAT_POINTS = MAX_LEVEL;
export const MAX_LEVEL_HARD_CAP = 9999;
export const MAX_FIELD_HARD_CAP = 99999;
export const MAX_GOLD_HARD_CAP = 999999;
export const MAX_EXPERIENCE_HARD_CAP = 25095129;
export const MAX_FIELD_HARD_CAP = 99999999;
export const ATTRIBUTES = ['str', 'int', 'con', 'per'];
export const MAX_INCENTIVES = 500;

Expand Down
4 changes: 0 additions & 4 deletions website/common/script/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ import {
MAX_INCENTIVES,
MAX_LEVEL,
MAX_LEVEL_HARD_CAP,
MAX_EXPERIENCE_HARD_CAP,
MAX_GOLD_HARD_CAP,
MAX_FIELD_HARD_CAP,
MAX_STAT_POINTS,
MAX_SUMMARY_SIZE_FOR_CHALLENGES,
Expand Down Expand Up @@ -127,8 +125,6 @@ api.constants = {
MAX_MESSAGE_LENGTH,
MAX_GIFT_MESSAGE_LENGTH,
MAX_LEVEL_HARD_CAP,
MAX_EXPERIENCE_HARD_CAP,
MAX_GOLD_HARD_CAP,
MAX_FIELD_HARD_CAP,
};
// TODO Move these under api.constants
Expand Down
4 changes: 2 additions & 2 deletions website/server/models/user/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -643,13 +643,13 @@ export const UserSchema = new Schema({
exp: {
$type: Number,
default: 0,
max: shared.constants.MAX_EXPERIENCE_HARD_CAP,
max: shared.constants.MAX_FIELD_HARD_CAP,
},
gp: {
$type: Number,
default: 0,
min: 0,
max: shared.constants.MAX_GOLD_HARD_CAP,
max: shared.constants.MAX_FIELD_HARD_CAP,
},
lvl: {
$type: Number,
Expand Down

0 comments on commit 681fc96

Please sign in to comment.