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

Updated isComplete to account for completed bundles.

An item is now complete if all of its bundles are either checked or
already complete.

Closes #44.
This commit is contained in:
John Cleaver 2016-04-13 19:14:27 -04:00
parent 7eb350517a
commit ecec52545d

View File

@ -134,7 +134,7 @@ var v = new Vue({
},
isCompleted: function (item) {
for(i=0; i < item.bundles.length; i++){
if(!this.isItemInBundle(item.bundles[i], item.id, i)){
if(!(this.isItemInBundle(item.bundles[i], item.id, i) || this.isBundleComplete(item.bundles[i]))){
return false;
}
}