Add function to turn a percentage into a quantity scaling factor

This commit is contained in:
Jonathan G Rennison
2024-01-26 18:23:53 +00:00
parent 191aefa39f
commit e0699c15b6
2 changed files with 28 additions and 0 deletions

View File

@@ -56,6 +56,8 @@ 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);
int PercentageToScaleQuantityFactor(uint percentage);
void UpdateCargoScalers();
#endif /* ECONOMY_FUNC_H */