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 223d212fd1 - Show all commits

View File

@ -134,7 +134,7 @@ class ViewModel {
if (this.hardmode) { if (this.hardmode) {
for (let index = 0; index < 4; index++) { for (let index = 0; index < 4; index++) {
newDates[index] = this.getRandomDate(new Date(year - 1), new Date(year + 1)); newDates[index] = this.getRandomDate(new Date((year - 1) + "-" + "01-01"), new Date((year + 1) + "-" + "01-01"));
} }
newDates[this.getRandomInt(0, 4)] = cpuDate; newDates[this.getRandomInt(0, 4)] = cpuDate;
return newDates; return newDates;