mirror of
https://github.com/AlecM33/Werewolf.git
synced 2025-12-26 15:57:50 +01:00
display custom role info
This commit is contained in:
@@ -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 ++;
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user