X-Git-Url: https://git.cworth.org/git?p=lmno.games;a=blobdiff_plain;f=empathy%2Fempathy.jsx;fp=empathy%2Fempathy.jsx;h=39889f7d8d7d16e4aba10f4385d8564931696a57;hp=37fd910e75eeca154e304b08dda107414456a9dc;hb=78536d0d2b714d5a88dcb67124c2de963c2e316d;hpb=58de8528fda4fe0afee507d5ac0c9fc1c5429736
diff --git a/empathy/empathy.jsx b/empathy/empathy.jsx
index 37fd910..39889f7 100644
--- a/empathy/empathy.jsx
+++ b/empathy/empathy.jsx
@@ -1245,11 +1245,15 @@ class Game extends React.PureComponent {
if (score.score === state.active_prompt.items) {
quirkster = Quirkster!;
}
+ let kudos_slam = null;
+ if (score.kudos > 0 && score.kudos >= players_total - 1) {
+ kudos_slam = Kudos Slam!;
+ }
return (
{score.players.join("/")}: {score.score}
{score.kudos ? `, ${'â
'.repeat(score.kudos)}` : ""}
- {perfect} {quirkster}
+ {' '}{perfect} {quirkster} {kudos_slam}
);
})}
@@ -1257,11 +1261,20 @@ class Game extends React.PureComponent {
Words submitted
{state.scores.words.map(word => {
+ let great_minds = null;
+ if (word.kudos.length && word.players.length > 1) {
+ great_minds = Great Minds!;
+ }
+ let kudos_slam = null;
+ if (word.kudos.length > 0 && word.kudos.length >= players_total - 1) {
+ kudos_slam = Kudos Slam!;
+ }
return (
-
{word.word} ({word.players.length}
{word.kudos.length ? `, ${'â
'.repeat(word.kudos.length)}` : ""}
): {word.players.join(', ')}
+ {' '}{great_minds}{kudos_slam}
);
})}