소스 검색

Display player's name when passing or tabooed

Thomas Dy 11 년 전
부모
커밋
4d12f3acec
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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+".";