Smol refactor
All checks were successful
Jenkins Production Deployment

This commit is contained in:
Patrick Müller 2022-09-16 11:50:39 +02:00
parent aec84dca5d
commit b09b683727
Signed by: Paddy
GPG Key ID: 37ABC11275CAABCE

View File

@ -436,24 +436,24 @@ export class AddGameComponent implements OnInit {
// Announcements
if (winningTeam === Team.RE) {
if (this.checkAnnouncementActive(announcements.Announcement.RE_NO_NINETY) && winningTeamScore > 150) {
gameScore += 1;
gameScore++;
}
if (this.checkAnnouncementActive(announcements.Announcement.RE_NO_SIXTY) && winningTeamScore > 180) {
gameScore += 1;
gameScore++;
}
if (this.checkAnnouncementActive(announcements.Announcement.RE_NO_THIRTY) && winningTeamScore > 210) {
gameScore += 1;
gameScore++;
}
}
if (winningTeam === Team.CONTRA) {
if (this.checkAnnouncementActive(announcements.Announcement.CONTRA_NO_NINETY) && winningTeamScore > 150) {
gameScore += 1;
gameScore++;
}
if (this.checkAnnouncementActive(announcements.Announcement.CONTRA_NO_SIXTY) && winningTeamScore > 180) {
gameScore += 1;
gameScore++;
}
if (this.checkAnnouncementActive(announcements.Announcement.CONTRA_NO_THIRTY) && winningTeamScore > 210) {
gameScore += 1;
gameScore++;
}
}