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

Method #util_gameVersion

lib/modCheckLib.js:967–976  ·  view source on GitHub ↗
(dVer)

Source from the content-addressed store, hash-verified

965
966 #util_between(low, check, high) { return ( check >= low && check <= high ) }
967 #util_gameVersion(dVer) {
968 if ( this.#util_between(4, dVer, 6) ) { return 11 }
969 if ( this.#util_between(9, dVer, 16) ) { return 13 }
970 if ( this.#util_between(20, dVer, 25) ) { return 15 }
971 if ( this.#util_between(31, dVer, 39) ) { return 17 }
972 if ( this.#util_between(40, dVer, 53) ) { return 19 }
973 if ( this.#util_between(60, dVer, 85) ) { return 22 }
974 if ( dVer >= 90 ) { return 25 }
975 return 0
976 }
977
978 #addModToData(collectKey, modRecord) {
979 const thisModRecord = { ...modRecord }

Callers 1

#addModToDataMethod · 0.95

Calls 1

#util_betweenMethod · 0.95

Tested by

no test coverage detected