Fix break upon 0 wrinklers #715
This commit is contained in:
1 parent
1653c18c55
commit
68c8cc9d54
9 files changed
+24
-32
No files matched your search
@@ -24,8 +24,8 @@ import {
|
||||
* @param {amount} amount Amount to be bought
|
||||
* @parem {string} target The target Cache object ("Objects1", "Objects10" or "Objects100")
|
||||
*/
|
||||
function CacheBuildingIncome(amount, target) {
|
||||
const result = [];
|
||||
function CacheBuildingIncome(amount) {
|
||||
const result = {};
|
||||
Object.keys(Game.Objects).forEach((i) => {
|
||||
result[i] = {};
|
||||
result[i].bonus = BuyBuildingsBonusIncome(i, amount);
|
||||
|
||||
Reference in new issue
Block a user