diff options
Diffstat (limited to 'rules.ts')
-rw-r--r-- | rules.ts | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -122,7 +122,7 @@ const fascist_decks = { export const scenarios = ['Standard']; -export const roles: Player[] = [ANARCHIST, COMMUNIST, MODERATE]; +export const roles: readonly Player[] = [ANARCHIST, COMMUNIST, MODERATE]; function gen_action(action: string, argument?: number | string) { if (argument === undefined) { @@ -443,7 +443,7 @@ function get_next_active(p: StateNode['p']): Player | Player[] | 'None' { return p.map((faction) => faction_player_map[faction]); } if (p === 'all') { - return roles; + return roles.slice(); } if (p === 'None') { return 'None'; |