mirror of
https://git.rezel.net/LudoTech/traque.git
synced 2026-02-09 02:10:18 +01:00
Cleaning
This commit is contained in:
@@ -2,6 +2,7 @@ import { GameState } from './types';
|
||||
import { teamStatus } from './configurations';
|
||||
|
||||
export function getStatus(team, gamestate) {
|
||||
if (!team) return null;
|
||||
switch (gamestate) {
|
||||
case GameState.SETUP:
|
||||
return teamStatus.waiting;
|
||||
@@ -11,5 +12,7 @@ export function getStatus(team, gamestate) {
|
||||
return team.captured ? teamStatus.captured : team.outofzone ? teamStatus.outofzone : teamStatus.playing;
|
||||
case GameState.FINISHED:
|
||||
return team.captured ? teamStatus.captured : teamStatus.playing;
|
||||
default:
|
||||
return teamStatus.default;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user