Parcourir la source

Display player's name when passing or tabooed

Thomas Dy il y a 11 ans
Parent
commit
4d12f3acec
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      public/javascripts/tabooServices.js

+ 2 - 2
public/javascripts/tabooServices.js

@@ -91,10 +91,10 @@ angular.module('tabooServices', [])
         text = "Uh-uh! You said a taboo word.";
       }
       else if(message.action == "pass") {
-        text = "Tsk tsk. You passed.";
+        text = "Tsk tsk. "+game.round.team.player+" passed.";
       }
       else if(message.action == "taboo") {
-        text = "Oh no! "+message.user+" has called you out.";
+        text = "Oh no! "+message.user+" has called "+game.round.team.player+" out.";
       }
 
       text += " The last word was "+message.card.word+".";