diff options
author | Paul Gilbert | 2017-11-13 20:46:37 -0500 |
---|---|---|
committer | Paul Gilbert | 2017-11-13 20:46:37 -0500 |
commit | 2ab66e7803730c7236aae19d9c48460ee0bd7cff (patch) | |
tree | ee7d3630c650066ca712a06f0600fbfccd76cbf1 /engines/xeen | |
parent | 13a53f3731dcf3509a71b139d7755ebf9ab508f3 (diff) | |
download | scummvm-rg350-2ab66e7803730c7236aae19d9c48460ee0bd7cff.tar.gz scummvm-rg350-2ab66e7803730c7236aae19d9c48460ee0bd7cff.tar.bz2 scummvm-rg350-2ab66e7803730c7236aae19d9c48460ee0bd7cff.zip |
XEEN: Added giveBankInterest method
Diffstat (limited to 'engines/xeen')
-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; |