summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrikboy@gmail.com>2024-12-02 15:46:15 +0100
committerAldrik Ramaekers <aldrikboy@gmail.com>2024-12-02 15:46:15 +0100
commit9508c6e65c7ff25da8848ca7e17e2220acb5ee5c (patch)
treee7e85174dcbf13e83f8d2ccb506ad8d237db069d /src/include
parent1b85aeaf9882e29c15b116b683acdab41bb3e94a (diff)
exclude boat time from work time
Diffstat (limited to 'src/include')
-rw-r--r--src/include/world.h3
1 files changed, 3 insertions, 0 deletions
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;