Add function to turn a percentage into a quantity scaling factor
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user