add WWTRA mode #4

Merged
Schmidii99 merged 15 commits from Developer into main 2023-04-28 22:11:34 +02:00
Showing only changes of commit fa68450373 - Show all commits

View File

@ -167,7 +167,8 @@ class ViewModel {
}
private getCurrentQuartal(dateArray) {
let quartal = Math.ceil(dateArray[1] % 4);
let quartal = Math.ceil(Number(dateArray[1] / 4));
return "Q" + quartal + " " + dateArray[0];
}
@ -178,7 +179,7 @@ class ViewModel {
}
processClick(text: string): boolean {
let result = text == this.repo.currentCpu.date;
let result = text == this.getCurrentQuartal(this.currentCpu.date.split("-"));
if (result) {
this.incrementScore(2);
} else {