Add settings for town/industry cargo production scaling modes

This commit is contained in:
Jonathan G Rennison
2024-01-16 19:12:10 +00:00
parent 53d29852e4
commit 3ab31f5518
8 changed files with 103 additions and 3 deletions

View File

@@ -253,6 +253,13 @@ enum TickRateMode : byte {
TRM_END, ///< Used for iterations and limit testing
};
enum CargoScalingMode : byte {
CSM_BEGIN = 0, ///< Used for iterations and limit testing
CSM_MONTHLY = 0, ///< Traditional cargo scaling
CSM_DAYLENGTH, ///< Also scale by day length
CSM_END, ///< Used for iterations and limit testing
};
struct CargoScaler {
private:
uint32_t scale16 = 1 << 16;