display custom role info

This commit is contained in:
AlecM33
2022-01-07 19:00:38 -05:00
parent 82e86f4fb6
commit 7ca184cfee
11 changed files with 175 additions and 13 deletions

View File

@@ -355,6 +355,7 @@ function initializePeopleForGame(uniqueCards, moderator) {
let j = 0;
if (moderator.userType === globals.USER_TYPES.TEMPORARY_MODERATOR) { // temporary moderators should be dealt in.
moderator.gameRole = cards[j].role;
moderator.customRole = cards[j].custom;
moderator.gameRoleDescription = cards[j].description;
moderator.alignment = cards[j].team;
people.push(moderator);
@@ -371,6 +372,7 @@ function initializePeopleForGame(uniqueCards, moderator) {
cards[j].description,
cards[j].team
);
person.customRole = cards[j].custom;
person.hasEnteredName = false;
people.push(person);
j ++;

View File

@@ -38,6 +38,7 @@ function getGameStateBasedOnPermissions(game, person, gameRunner) {
userType: person.userType,
gameRole: person.gameRole,
gameRoleDescription: person.gameRoleDescription,
customRole: person.customRole,
alignment: person.alignment,
out: person.out
}