From 82419840618418daa9020029a5347fc0f6e5edc5 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Mon, 25 Nov 2024 14:52:56 +0100 Subject: location score. close #1, close #7, close #6 --- src/include/world.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/include/world.h') diff --git a/src/include/world.h b/src/include/world.h index 11ac92e..a719e57 100644 --- a/src/include/world.h +++ b/src/include/world.h @@ -29,6 +29,8 @@ typedef struct t_world_location world_location; typedef struct t_employee employee; + + #define WORK_HOUR_START 0 #define WORK_HOUR_END 24 #define TIME_SLOTS_PER_HOUR 4 @@ -39,7 +41,8 @@ typedef struct t_employee employee; #define MAX_EMPLOYEE_COUNT (TIME_SLOTS_PER_WEEK) #define MAX_TRUCK_COUNT (TIME_SLOTS_PER_WEEK) -#define MISSED_DELIVERY_TRUST_PENALTY (0.5f) +#define JOB_STARTING_TRUST 0.8f +#define MISSED_DELIVERY_TRUST_PENALTY (0.1f) #define MAX_EFFECTIVE_EXPERIENCE 25.0f // anything past 25 years of experience has no extra positives. #define SHIPTIME_DURATION_MULTIPLIER_MAX 1.0f #define SHIPTIME_DURATION_MULTIPLIER_MIN 1.15f @@ -145,7 +148,7 @@ typedef struct t_employee struct tm hire_date; u8 experience; float salary; - float happiness; + float happiness; // 0-1 s16 days_below_happiness_treshold; u32 current_location_id; u32 original_location_id; @@ -242,6 +245,7 @@ typedef struct t_world_location schedule schedule; u16 purchase_year; array insights; + float score; // 0-1 // Dynamic array connections; -- cgit v1.2.3-70-g09d2