diff --git a/client/src/config/defaultRoles.js b/client/src/config/defaultRoles.js index 44ceda4..96f7bff 100644 --- a/client/src/config/defaultRoles.js +++ b/client/src/config/defaultRoles.js @@ -37,8 +37,8 @@ export const defaultRoles = [ { role: 'Doctor', team: 'good', - description: `Each night, choose a player to protect from the Werewolves. This can be yourself. If the Werewolves - target this person, they still survive to the following day.` + description: 'Each night, choose a player to protect from the Werewolves. This can be yourself. If the Werewolves ' + + 'target this person, they still survive to the following day.' }, { role: 'Parity Hunter', diff --git a/client/src/config/globals.js b/client/src/config/globals.js index 0c9cf28..041fa74 100644 --- a/client/src/config/globals.js +++ b/client/src/config/globals.js @@ -8,6 +8,8 @@ export const PRIMITIVES = { MAX_CUSTOM_ROLE_DESCRIPTION_LENGTH: 1000, TOAST_DURATION_DEFAULT: 6, ACCESS_CODE_LENGTH: 4, + MAX_MINUTES: 59, + MAX_HOURS: 5, PLAYER_ID_COOKIE_KEY: 'play-werewolf-anon-id' }; @@ -75,6 +77,7 @@ export const EVENT_IDS = { ASSIGN_DEDICATED_MOD: 'assignDedicatedMod', KICK_PERSON: 'kickPerson', UPDATE_GAME_ROLES: 'updateGameRoles', + UPDATE_GAME_TIMER: 'updateGameTimer', LEAVE_ROOM: 'leaveRoom' }; @@ -93,6 +96,7 @@ export const LOBBY_EVENTS = function () { EVENT_IDS.ADD_SPECTATOR, EVENT_IDS.KICK_PERSON, EVENT_IDS.UPDATE_GAME_ROLES, + EVENT_IDS.UPDATE_GAME_TIMER, EVENT_IDS.LEAVE_ROOM ]; }; diff --git a/client/src/modules/front_end_components/HTMLFragments.js b/client/src/modules/front_end_components/HTMLFragments.js index 09f9c2e..35fa91d 100644 --- a/client/src/modules/front_end_components/HTMLFragments.js +++ b/client/src/modules/front_end_components/HTMLFragments.js @@ -11,7 +11,7 @@ export const HTMLFragments = {