MCPcopy Create free account
hub / github.com/FSGModding/FSG_Mod_Assistant / #doBadges

Method #doBadges

lib/modCheckLib.js:887–903  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

885 }
886
887 #doBadges() {
888 this.#populateBadgeL10n()
889 this.#siteStore = serveIPC.storeSites.store
890 for ( const collectKey of this.#set_Collections ) {
891 const thisCollect = this.getModCollection(collectKey)
892 for ( const thisModKey of thisCollect.modSet ) {
893 const thisModRecord = this.#list_allMods[collectKey].mods[thisModKey]
894 const newBadges = this.#doModBadge(
895 thisModRecord,
896 this.getConflictInCollection(collectKey, thisModRecord),
897 this.getDependInCollection(collectKey, thisModRecord),
898 this.#list_allMods[collectKey].requireSet
899 )
900 thisModRecord.displayBadges = newBadges
901 }
902 }
903 }
904
905 #cacheHit(thisFileStats) {
906 if ( thisFileStats.folder || this.#skipCache || thisFileStats.hashString === null ) {

Callers 1

processModsPostMethod · 0.95

Calls 5

#populateBadgeL10nMethod · 0.95
getModCollectionMethod · 0.95
#doModBadgeMethod · 0.95
getDependInCollectionMethod · 0.95

Tested by

no test coverage detected