diff options
-rw-r--r-- | engines/xeen/party.cpp | 7 | ||||
-rw-r--r-- | engines/xeen/party.h | 5 |
2 files changed, 8 insertions, 4 deletions
diff --git a/engines/xeen/party.cpp b/engines/xeen/party.cpp index 92b7dff6f1..71b1cb38c1 100644 --- a/engines/xeen/party.cpp +++ b/engines/xeen/party.cpp @@ -395,7 +395,7 @@ void Party::addTime(int numMinutes) { if ((_day % 10) == 1 || numMinutes > (24 * 60)) { if (_day != day) { resetBlacksmithWares(); - giveInterest(); + giveBankInterest(); } } @@ -1525,8 +1525,9 @@ void Party::resetBlacksmithWares() { } } -void Party::giveInterest() { - +void Party::giveBankInterest() { + _bankGold += _bankGold / 100; + _bankGems += _bankGems / 100; } } // End of namespace Xeen diff --git a/engines/xeen/party.h b/engines/xeen/party.h index adf0ad760d..d32c6fd00a 100644 --- a/engines/xeen/party.h +++ b/engines/xeen/party.h @@ -101,7 +101,10 @@ private: */ void resetBlacksmithWares(); - void giveInterest(); + /** + * Applies interest to any gold and gems in the player's bank account + */ + void giveBankInterest(); public: // Dynamic data that's saved Direction _mazeDirection; |