From: Carl Worth <cworth@cworth.org>
Date: Wed, 10 Jun 2020 16:19:14 +0000 (-0700)
Subject: Empathy: Display player scores at the main screen of the game
X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=ab3973907487f6195270382e958b318ea8f2044c;p=lmno.games

Empathy: Display player scores at the main screen of the game

Leaving each off entirely if unset or 0.
---

diff --git a/empathy/empathy.jsx b/empathy/empathy.jsx
index 54d6c26..21b766a 100644
--- a/empathy/empathy.jsx
+++ b/empathy/empathy.jsx
@@ -127,10 +127,12 @@ const PlayerInfo = React.memo(props => {
     <div className="player-info">
       <span className="players-header">Players: </span>
       {props.player.name}
+      {props.player.score > 0 ? ` (${props.player.score})` : ""}
       {props.other_players.map(other => (
         <span key={other.id}>
           {", "}
           {other.name}
+          {other.score > 0 ? ` (${other.score})` : ""}
         </span>
       ))}
     </div>