Update servant cost calculation and documentation: Adjust base servant cost formula to reflect a compressed time scale in Falukant, changing the calculation from a realistic monthly wage to an abstract maintenance value. Update implementation spec to clarify the new cost structure and time measurement for the external daemon.

This commit is contained in:
Torsten Schulz (local)
2026-03-23 10:10:11 +01:00
parent d901257be1
commit b3607849d2
2 changed files with 14 additions and 3 deletions

View File

@@ -4519,7 +4519,10 @@ class FalukantService extends BaseService {
}
calculateServantMonthlyCost({ servantCount, servantQuality, servantPayLevel, houseType }) {
const basePerServant = Math.max(20, Math.round((Number(houseType?.cost || 0) / 1000) + 40));
// Falukant läuft stark zeitkomprimiert (1 Tag = 1 Jahr). Der "Monatslohn"
// ist deshalb bewusst ein abstrahierter Unterhaltswert pro Monatstick und
// kein realistischer Vollkostenlohn.
const basePerServant = Math.max(3, Math.round((Number(houseType?.cost || 0) / 10000) + 6));
const qualityFactor = 1 + ((Number(servantQuality || 50) - 50) / 200);
const payFactor = this.getPayLevelMultiplier(servantPayLevel);
return Math.round(servantCount * basePerServant * qualityFactor * payFactor * 100) / 100;