MCPcopy Create free account
hub / github.com/FSGModding/FSG_Mod_Assistant / getDependInCollection

Method getDependInCollection

lib/modCheckLib.js:844–848  ·  view source on GitHub ↗

* Get if depended on mods are in a collection * @param {modRecord_collectKey} collectKey * @param {modRecord} modRecord * @returns {(boolean|number)} number not met

(collectKey, modRecord)

Source from the content-addressed store, hash-verified

842 * @returns {(boolean|number)} number not met
843 */
844 getDependInCollection(collectKey, modRecord) {
845 if ( modRecord.modDesc.depend.length === 0 ) { return false }
846 const metSet = this.getModCollection(collectKey).dependSet
847 return modRecord.modDesc.depend.filter((x) => ! metSet.has(x))
848 }
849
850 #populateBadgeL10n() {
851 const allBadges = [

Callers 1

#doBadgesMethod · 0.95

Calls 2

getModCollectionMethod · 0.95
hasMethod · 0.80

Tested by

no test coverage detected