src/economy_type.h
changeset 10146 cfea97f96067
parent 9623 fce00b25b921
equal deleted inserted replaced
10145:849ba8b8626b 10146:cfea97f96067
    10 #include "cargo_type.h"
    10 #include "cargo_type.h"
    11 
    11 
    12 typedef OverflowSafeInt64 Money;
    12 typedef OverflowSafeInt64 Money;
    13 
    13 
    14 struct Economy {
    14 struct Economy {
    15 	Money max_loan;         ///< Maximum possible loan
    15 	Money max_loan;                       ///< Maximum possible loan
    16 	Money max_loan_unround; ///< Economy fluctuation status
    16 	Money max_loan_unround;               ///< Economy fluctuation status
    17 	uint16 max_loan_unround_fract; ///< Fraction of the unrounded max loan
    17 	uint16 max_loan_unround_fract;        ///< Fraction of the unrounded max loan
    18 	int16 fluct;
    18 	int16 fluct;
    19 	byte interest_rate;     ///< Interest
    19 	byte interest_rate;                   ///< Interest
    20 	byte infl_amount;       ///< inflation amount
    20 	byte infl_amount;                     ///< inflation amount
    21 	byte infl_amount_pr;    ///< inflation rate for payment rates
    21 	byte infl_amount_pr;                  ///< inflation rate for payment rates
       
    22 	uint32 industry_daily_change_counter; ///< Bits 31-16 are number of industry to be performed, 15-0 are fractional collected daily
       
    23 	uint32 industry_daily_increment;      ///< The value which will increment industry_daily_change_counter. Computed value. NOSAVE
    22 };
    24 };
    23 
    25 
    24 struct Subsidy {
    26 struct Subsidy {
    25 	CargoID cargo_type;
    27 	CargoID cargo_type;
    26 	byte age;
    28 	byte age;