(by Codex) Widen daily interest calculations before rate division
This commit is contained in:
1 parent
70082ef825
commit
d57b6b5a96
6 files changed
+104
-25
No files matched your search
@@ -28,6 +28,12 @@ namespace bmh {
|
||||
// cleared for every manager.
|
||||
void daily_interest(GameState& g, WatcomRandom& rand);
|
||||
|
||||
struct DailyInterestAmounts {
|
||||
int32_t borrowing = 0;
|
||||
int32_t cash_and_deposit = 0; // Negative amounts are interest income.
|
||||
};
|
||||
DailyInterestAmounts daily_interest_amounts(int32_t cash, int32_t deposit, int32_t credit);
|
||||
|
||||
} // namespace bmh
|
||||
|
||||
namespace bmh {
|
||||
|
||||
Reference in new issue
Block a user