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:
parent
7eb350517a
commit
ecec52545d
2
main.js
2
main.js
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user