Change cargo scaling settings to be linear instead of logarithmic

This commit is contained in:
Jonathan G Rennison
2024-01-16 18:02:34 +00:00
parent c8ff26f2b8
commit 1e0bb019a7
21 changed files with 190 additions and 96 deletions

View File

@@ -25,6 +25,10 @@ extern Economy _economy;
/* Prices and also the fractional part. */
extern Prices _price;
extern CargoScaler _town_cargo_scaler;
extern CargoScaler _industry_cargo_scaler;
extern CargoScaler _industry_inverse_cargo_scaler;
int UpdateCompanyRatingAndValue(Company *c, bool update);
void StartupIndustryDailyChanges(bool init_counter);
@@ -52,4 +56,6 @@ inline bool EconomyIsInRecession()
uint ScaleQuantity(uint amount, int scale_factor, bool allow_trunc = false);
uint ScaleQuantity(uint amount, int cf, int fine, bool allow_trunc = false);
void UpdateCargoScalers();
#endif /* ECONOMY_FUNC_H */