diff options
Diffstat (limited to 'src/world.c')
| -rw-r--r-- | src/world.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/world.c b/src/world.c index 4665a86..8ceb5b3 100644 --- a/src/world.c +++ b/src/world.c @@ -725,7 +725,9 @@ static void world_assign_new_job_offers(world* world) total_dist += distance_between_location(source, dest);
}
new_offer.total_distance = total_dist;
- new_offer.reward = (u32)(new_offer.total_distance * 2.1);
+ new_offer.reward = (u32)((new_offer.total_distance * 2.1) *
+ (1 + (0.2f * (location->score))) *
+ (1 + (get_random_number(0, 10) / 100.0f)));
// lets assume most experienced drivers drive at 90km/h
double min_duration_hours = (new_offer.total_distance/90.0);
|
