-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
I'm working on a game and I've found that I need to be able to check for every object of a certain type in a room.
however, the function getContents() is undefined for some reason.
Fortunately, I eventually discovered a workaround:
const get_all_children = function(_room) { var list = scopeBy(item => item.isAtLoc(_room)) var newlist = list list.forEach(function(thingy){ newlist = newlist.concat(get_all_children(thingy)) }) return newlist }
KVonGit
Metadata
Metadata
Assignees
Labels
No labels