Skip to content

Commit 17c5484

Browse files
authored
Remove conditional from cubeo getPlayersScores
An old conditional caused the status not to display in certain circumstances, but seemed to have no purpose in cubeo.
1 parent 0e3cf62 commit 17c5484

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/games/cubeo.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -674,15 +674,10 @@ export class CubeoGame extends GameBase {
674674
}
675675

676676
public getPlayersScores(): IScores[] {
677-
const statuses: IScores[] = [];
678-
if (this.diceInHand(1) > 0 || this.diceInHand(2) > 0) {
679-
statuses.push({ name: i18next.t("apgames:status.PIECESINHAND"), scores: [this.diceInHand(1), this.diceInHand(2)] });
680-
}
681-
return statuses;
677+
return [{ name: i18next.t("apgames:status.PIECESINHAND"), scores: [this.diceInHand(1), this.diceInHand(2)] }];
682678
}
683679

684680
public clone(): CubeoGame {
685-
686681
return Object.assign(new CubeoGame(), deepclone(this) as CubeoGame);
687682
}
688683
}

0 commit comments

Comments
 (0)