|
@@ -12,12 +12,21 @@
|
|
|
|
|
|
#include "core/overflowsafe_type.hpp"
|
|
|
#include "core/enum_type.hpp"
|
|
|
|
|
|
typedef OverflowSafeInt64 Money;
|
|
|
|
|
|
/** Type of the game economy. */
|
|
|
enum EconomyType : uint8 {
|
|
|
ET_BEGIN = 0,
|
|
|
ET_ORIGINAL = 0,
|
|
|
ET_SMOOTH = 1,
|
|
|
ET_FROZEN = 2,
|
|
|
ET_END = 3,
|
|
|
};
|
|
|
|
|
|
/** Data of the economy. */
|
|
|
struct Economy {
|
|
|
Money max_loan; ///< NOSAVE: Maximum possible loan
|
|
|
int16 fluct; ///< Economy fluctuation status
|
|
|
byte interest_rate; ///< Interest
|
|
|
byte infl_amount; ///< inflation amount
|