@@ -27,12 +27,12 @@ function Scorebot() {
2727 this . time = 0 ;
2828 this . map ;
2929 this . interval ;
30-
30+
3131 this . scoreboard ;
32-
32+
3333 this . players = { } ;
3434 this . teams = { } ;
35-
35+
3636 this . knifeKills = 0 ;
3737
3838 this . options = { } ;
@@ -125,7 +125,7 @@ Scorebot.prototype._onLog = function(logs) {
125125 logs . forEach ( function ( log ) {
126126 for ( event in log ) {
127127 this . emit ( 'debug' , 'received event: ' + event ) ;
128-
128+
129129 switch ( event ) {
130130 case 'Kill' :
131131 case 'Assist' :
@@ -182,7 +182,7 @@ Scorebot.prototype._onSuicide = function(event) {
182182
183183Scorebot . prototype . _onBombPlanted = function ( event ) {
184184 this . setTime ( this . options [ Scorebot . EOption [ 'BOMB_TIME' ] ] ) ;
185-
185+
186186 this . emit ( 'bombPlanted' , {
187187 player : this . getPlayers ( ) [ event . playerName ]
188188 } ) ;
@@ -216,16 +216,16 @@ Scorebot.prototype._onRoundEnd = function(event) {
216216 }
217217
218218 this . setTime ( this . options [ Scorebot . EOption [ "FREEZE_TIME" ] ] ) ;
219-
219+
220220 var t = this . getTeams ( ) [ Scorebot . ESide [ 'TERRORIST' ] ] ;
221221 var ct = this . getTeams ( ) [ Scorebot . ESide [ 'COUNTERTERRORIST' ] ] ;
222-
222+
223223 t . score = event . terroristScore
224224 ct . score = event . counterTerroristScore ;
225-
225+
226226 teams [ Scorebot . ESide [ 'TERRORIST' ] ] = t ;
227227 teams [ Scorebot . ESide [ 'COUNTERTERRORIST' ] ] = ct ;
228-
228+
229229 this . emit ( 'roundEnd' , {
230230 teams : teams ,
231231 winner : this . getTeams ( ) [ winner ] ,
@@ -292,21 +292,21 @@ function updateGame(scoreboard) {
292292 }
293293 } ;
294294 } ) ;
295-
295+
296296 that . teams [ Scorebot . ESide [ 'TERRORIST' ] ] = {
297297 name : scoreboard . terroristTeamName ,
298298 id : scoreboard . tTeamId ,
299299 score : scoreboard . terroristScore ,
300300 side : Scorebot . ESide [ 'TERRORIST' ]
301301 } ;
302-
302+
303303 that . teams [ Scorebot . ESide [ 'COUNTERTERRORIST' ] ] = {
304304 name : scoreboard . ctTeamName ,
305305 id : scoreboard . ctTeamId ,
306306 score : scoreboard . counterTerroristScore ,
307307 side : Scorebot . ESide [ 'COUNTERTERRORIST' ]
308308 } ;
309-
309+
310310 that . scoreboard = scoreboard ;
311311}
312312
0 commit comments