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:
commit
35c41b5218
3
main.js
3
main.js
@ -130,8 +130,7 @@ var v = new Vue({
|
|||||||
getRoomItemsChecked: function(roomId){
|
getRoomItemsChecked: function(roomId){
|
||||||
return this.static.bundles
|
return this.static.bundles
|
||||||
.filter(function(b){ return b.room === roomId; })
|
.filter(function(b){ return b.room === roomId; })
|
||||||
.map(function(b){ return b.id; })
|
.reduce(function(p, c){ return p + Math.min(v.user_data[c.id].length, c.items_required); }, 0);
|
||||||
.reduce(function(p, c){ return p + v.user_data[c].length; }, 0);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user