From 9508c6e65c7ff25da8848ca7e17e2220acb5ee5c Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Mon, 2 Dec 2024 15:46:15 +0100 Subject: exclude boat time from work time --- src/include/world.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/include/world.h') diff --git a/src/include/world.h b/src/include/world.h index 06a6d11..458478b 100644 --- a/src/include/world.h +++ b/src/include/world.h @@ -135,8 +135,10 @@ typedef struct t_job_offer u32 reward; array connections; // Should not be freed if offer has been accepted. double total_distance; // in KM + double boat_distance; // in KM, included in trip time but not worked time. reward for these KM's are 10% of normal price. time_t duration_sec_min; // experienced drivers time_t duration_sec_max; // inexperienced drivers + time_t duration_sec_min_excluding_boat; // used to calculate scheduled hours. hours on boat are only counted for 10% } job_offer; typedef struct t_employee @@ -227,6 +229,7 @@ typedef struct t_schedule typedef struct t_world_location { // Static + s32 index; u8 size; double latitude; double longitude; -- cgit v1.2.3-70-g09d2