note unfaithfulness in helminth implementation

This commit is contained in:
Sainan 2025-01-05 13:36:20 +01:00
parent f2438ec8c2
commit f4ece953ea

View File

@ -97,7 +97,7 @@ export const infestedFoundryController: RequestHandler = async (req, res) => {
type: mostDislikedSnackRecord.ItemType, type: mostDislikedSnackRecord.ItemType,
date: mostDislikedSnackRecord.Date date: mostDislikedSnackRecord.Date
}); });
mostDislikedSnackRecord.Date = currentUnixSeconds + 24 * 60 * 60; mostDislikedSnackRecord.Date = currentUnixSeconds + 24 * 60 * 60; // Possibly unfaithful
continue; continue;
} }
@ -125,7 +125,7 @@ export const infestedFoundryController: RequestHandler = async (req, res) => {
apetiteFactor apetiteFactor
}); });
if (hoursRemaining >= 18) { if (hoursRemaining >= 18) {
record.Date = currentUnixSeconds + 72 * 60 * 60; record.Date = currentUnixSeconds + 72 * 60 * 60; // Possibly unfaithful
} else { } else {
record.Date = currentUnixSeconds + 24 * 60 * 60; record.Date = currentUnixSeconds + 24 * 60 * 60;
} }
@ -431,6 +431,8 @@ interface IHelminthInvigorationRequest {
ResourceCosts: number[]; ResourceCosts: number[];
} }
// A fitted model for observed apetite values. Likely slightly inaccurate.
//
// Hours remaining, percentage points gained (out of 30 total) // Hours remaining, percentage points gained (out of 30 total)
// 0, 30 // 0, 30
// 5, 25.8 // 5, 25.8