deal roles

This commit is contained in:
Alec
2021-11-17 23:19:54 -05:00
parent b85ee7dcfc
commit eb4193fb1b
10 changed files with 166 additions and 23 deletions

View File

@@ -13,7 +13,8 @@ function getGameStateBasedOnPermissions(game, person) {
name: person.name,
id: person.id,
gameRole: person.gameRole,
roleDescription: person.roleDescription
gameRoleDescription: person.gameRoleDescription,
alignment: person.alignment
}
switch (person.userType) {
case globals.USER_TYPES.PLAYER:
@@ -66,7 +67,8 @@ function mapPeopleForModerator(people, client) {
.map((person) => ({
name: person.name,
gameRole: person.gameRole,
gameRoleDescription: person.gameRoleDescription
gameRoleDescription: person.gameRoleDescription,
alignment: person.alignment
}));
}