diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-11-25 14:52:56 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-11-25 14:52:56 +0100 |
| commit | 82419840618418daa9020029a5347fc0f6e5edc5 (patch) | |
| tree | a571a917c081abb1bb2fc2db3d55066518dd3141 /src/include | |
| parent | 269be26f06ff9506cf33da603342bb0963a3339c (diff) | |
location score. close #1, close #7, close #6
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/world.h | 8 |
1 files changed, 6 insertions, 2 deletions
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;
|
