1
0
mirror of https://github.com/kihashi/stardew_community_checklist.git synced 2025-10-19 08:03:17 +00:00

Merge branch 'master' into JSON

This commit is contained in:
John Cleaver 2016-04-10 17:41:01 -04:00
commit 35c41b5218

View File

@ -130,8 +130,7 @@ var v = new Vue({
getRoomItemsChecked: function(roomId){
return this.static.bundles
.filter(function(b){ return b.room === roomId; })
.map(function(b){ return b.id; })
.reduce(function(p, c){ return p + v.user_data[c].length; }, 0);
.reduce(function(p, c){ return p + Math.min(v.user_data[c.id].length, c.items_required); }, 0);
}
}
});