-
Notifications
You must be signed in to change notification settings - Fork 6
Add support for "loric" role type in game logic #76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 1 commit
a0e64ef
a0bf801
6fa6e1e
71772b1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -116,7 +116,7 @@ function Character(props: { | |
| } | ||
|
|
||
| function pluralRole(roleType: string): string { | ||
| return ["townsfolk", "fabled", "travellers"].includes(roleType) | ||
| return ["townsfolk", "fabled", "loric", "travellers"].includes(roleType) | ||
| ? roleType | ||
| : roleType + "s"; | ||
|
Comment on lines
118
to
121
|
||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RoleTypesnow includes "loric", but there are other role-type unions hardcoded elsewhere (e.g.Override.homebrew.roleTypeinsrc/js/botc/overrides.ts) that still only allow townsfolk/outsider/minion/demon/fabled/travellers. This makes the type surface inconsistent and prevents defining homebrew overrides with the new role type. Prefer reusing the sharedRoleTypetype (or at least add "loric" to the union) so the codebase stays in sync when role types evolve.