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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user