[Scummvm-git-logs] scummvm master -> 2ab66e7803730c7236aae19d9c48460ee0bd7cff
dreammaster
dreammaster at scummvm.org
Tue Nov 14 02:46:40 CET 2017
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
2ab66e7803 XEEN: Added giveBankInterest method
Commit: 2ab66e7803730c7236aae19d9c48460ee0bd7cff
https://github.com/scummvm/scummvm/commit/2ab66e7803730c7236aae19d9c48460ee0bd7cff
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2017-11-13T20:46:37-05:00
Commit Message:
XEEN: Added giveBankInterest method
Changed paths:
engines/xeen/party.cpp
engines/xeen/party.h
diff --git a/engines/xeen/party.cpp b/engines/xeen/party.cpp
index 92b7dff..71b1cb3 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 adf0ad7..d32c6fd 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;
More information about the Scummvm-git-logs
mailing list