Use local allowed skins array

This commit is contained in:
Vortrex
2022-04-28 11:33:25 -05:00
parent da785f44ce
commit 7015873b74

View File

@@ -1477,16 +1477,13 @@ function isGameFeatureSupported(featureName) {
// ===========================================================================
function getAllowedSkins(gameId = getGame()) {
logToConsole(getGame());
logToConsole(gameId);
logToConsole(typeof gameId);
return getGameConfig().skins[gameId].filter(skin => skin[2] == true);
}
// ===========================================================================
function getAllowedSkinIndexFromSkin(skin) {
let allowedSkins = getAllowedSkins();
for(let i in allowedSkins) {
if(allowedSkins[i][0] == skin) {
return i;