From f4ece953eadc7f253a6cb7c45f3e713c1c518e3a Mon Sep 17 00:00:00 2001 From: Sainan Date: Sun, 5 Jan 2025 13:36:20 +0100 Subject: [PATCH] note unfaithfulness in helminth implementation --- src/controllers/api/infestedFoundryController.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/controllers/api/infestedFoundryController.ts b/src/controllers/api/infestedFoundryController.ts index 56ef3eab..9e9fd4e8 100644 --- a/src/controllers/api/infestedFoundryController.ts +++ b/src/controllers/api/infestedFoundryController.ts @@ -97,7 +97,7 @@ export const infestedFoundryController: RequestHandler = async (req, res) => { type: mostDislikedSnackRecord.ItemType, date: mostDislikedSnackRecord.Date }); - mostDislikedSnackRecord.Date = currentUnixSeconds + 24 * 60 * 60; + mostDislikedSnackRecord.Date = currentUnixSeconds + 24 * 60 * 60; // Possibly unfaithful continue; } @@ -125,7 +125,7 @@ export const infestedFoundryController: RequestHandler = async (req, res) => { apetiteFactor }); if (hoursRemaining >= 18) { - record.Date = currentUnixSeconds + 72 * 60 * 60; + record.Date = currentUnixSeconds + 72 * 60 * 60; // Possibly unfaithful } else { record.Date = currentUnixSeconds + 24 * 60 * 60; } @@ -431,6 +431,8 @@ interface IHelminthInvigorationRequest { ResourceCosts: number[]; } +// A fitted model for observed apetite values. Likely slightly inaccurate. +// // Hours remaining, percentage points gained (out of 30 total) // 0, 30 // 5, 25.8