mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-15 13:47:33 +01:00
* Added a field in Party page with members count and maximum members in party * Added information of invitations counter * Limited party to 2 members on server (API) * Fixed english text * Consider current number of invitations in the party * Moved PARTY_LIMIT_MEMBERS to common folder * Access the PARTY_LIMIT_MEMBERS through groupsCtrl * Some corrections * Hide invite button when invite limit is reached * Added missing trailing comma * Do not test 'returns only first 30 invites' in a party anymore, but in a guild: party is limited to 30 members, so it would always fail * Test: allow 30 members in a party * Test: do not allow 30+ members in a party * Improved 'allow 30 members in a party' test * Test: 'allow 30+ members in a guild' * Added missing trailing comma * Code style corrections * Fixed new line position * Party limit check done inside Group.validateInvitations function * Improved members count query * Fixed tests * Rewrite tests * Removed import of BadRequest: value became unused * Added 'await' to remaining 'Group.validateInvitations' functions * Fixed tests that would always success
18 lines
571 B
JavaScript
18 lines
571 B
JavaScript
export const MAX_HEALTH = 50;
|
|
export const MAX_LEVEL = 100;
|
|
export const MAX_STAT_POINTS = MAX_LEVEL;
|
|
export const ATTRIBUTES = ['str', 'int', 'per', 'con'];
|
|
export const MAX_INCENTIVES = 100;
|
|
|
|
export const TAVERN_ID = '00000000-0000-4000-A000-000000000000';
|
|
export const LARGE_GROUP_COUNT_MESSAGE_CUTOFF = 5000;
|
|
|
|
export const SUPPORTED_SOCIAL_NETWORKS = [
|
|
{key: 'facebook', name: 'Facebook'},
|
|
{key: 'google', name: 'Google'},
|
|
];
|
|
|
|
export const GUILDS_PER_PAGE = 30; // number of guilds to return per page when using pagination
|
|
|
|
export const PARTY_LIMIT_MEMBERS = 30;
|