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

Method add

lib/modCheckLib.js:1590–1600  ·  view source on GitHub ↗

* Add a badge * @param {string} key badge id to add

(key)

Source from the content-addressed store, hash-verified

1588 * @param {string} key badge id to add
1589 */
1590 add(key) {
1591 this.#baseSet.add(key)
1592 this.#extraData[key] ??= { cls : new Set(), title : new Set() }
1593 if ( key === 'pconly' ) { this.addClass(key, [
1594 'bdg_no_fs13',
1595 'bdg_no_fs15',
1596 'bdg_no_fs17',
1597 'bdg_no_fs19'
1598 ]) }
1599 if ( key === 'nonmh' ) { this.addClass(key, 'bdg_no_fs13') }
1600 }
1601
1602 /**
1603 * Remove a badge

Callers 9

#doModBadgeMethod · 0.95
constructorMethod · 0.95
addCollectionMethod · 0.45
#startThreadsMethod · 0.45
#workQueueResponseMethod · 0.45
#addModToDataMethod · 0.45
#addExtraMethod · 0.45

Calls 1

addClassMethod · 0.95

Tested by

no test coverage detected