Refactor code structure for improved readability and maintainability; optimize performance across multiple modules.

This commit is contained in:
Torsten Schulz (local)
2026-07-21 09:08:15 +02:00
parent c564d6decf
commit a7e0fe1d97
1381 changed files with 22278 additions and 485 deletions

6
backend/services/falukantService.js Normal file → Executable file
View File

@@ -3587,10 +3587,10 @@ class FalukantService extends BaseService {
return { scheduled: false };
}
// Gleicher Default wie adminForceFalukantPregnancy (21 Tage bis Geburt — komprimierte Spielzeit).
const BIRTH_DUE_DAYS = 21;
// Automatische Hochzeits-Schwangerschaften nutzen die kurze Spielzeit von 18 Stunden.
const BIRTH_DUE_HOURS = 18;
const due = new Date();
due.setDate(due.getDate() + BIRTH_DUE_DAYS);
due.setHours(due.getHours() + BIRTH_DUE_HOURS);
await FalukantCharacter.unscoped().update(
{