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

Add items required

This commit is contained in:
John Cleaver 2018-04-28 12:16:52 -04:00
parent 689b8e0b5f
commit 0ba9121201

View File

@ -54,6 +54,7 @@ function loadSkills () {
function loadRooms () {
return RoomJson.rooms.map(room => {
room.bundles = new Array(0)
room.items_required = 0
return room
})
}
@ -62,6 +63,7 @@ function loadBundles (rooms) {
return BundleJson.bundles.map(bundle => {
bundle.room = getById(rooms, bundle.room)
bundle.room.bundles.push(bundle)
bundle.room.items_required += bundle.items_required
bundle.items = new Array(0)
return bundle
})