-
Notifications
You must be signed in to change notification settings - Fork 0
feat: improve mook takeout toast to show attacker and target names #365
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
Changes from all commits
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 | ||||
|---|---|---|---|---|---|---|
|
|
@@ -157,7 +157,7 @@ export function createWoundUpdate( | |||||
|
|
||||||
| const description = | ||||||
| isMook && context.isMookTakedown | ||||||
| ? `${attacker.name} took out ${wounds} ${wounds === 1 ? "mook" : "mooks"}${defenseDesc}` | ||||||
| ? `${attacker.name} took out ${wounds} ${targetChar.name}${defenseDesc}` | ||||||
|
||||||
| ? `${attacker.name} took out ${wounds} ${targetChar.name}${defenseDesc}` | |
| ? `${attacker.name} took out ${wounds} of the ${targetChar.name}${defenseDesc}` |
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.
The toast message may read awkwardly when the number of mooks doesn't match the grammatical number of the character name. For example, "Brick Manly took out 1 Zombies" is grammatically incorrect (should be "1 Zombie"). Mook character names are typically plural (e.g., "Zombies", "Assassins"), but the old code handled this by using "mook"/"mooks" with conditional pluralization based on the count. Consider adding logic to handle singular vs plural forms of the mook name, or use a more flexible phrasing that works regardless of count.