From ecfbf1ad158a14d8c53d4b0c5bbb02cd18040018 Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Sun, 10 Apr 2022 00:00:40 -0500 Subject: [PATCH] Remove old data arrays --- scripts/shared/utilities.js | 55 ++++++++----------------------------- 1 file changed, 12 insertions(+), 43 deletions(-) diff --git a/scripts/shared/utilities.js b/scripts/shared/utilities.js index 6e8cd5e5..baef80c4 100644 --- a/scripts/shared/utilities.js +++ b/scripts/shared/utilities.js @@ -127,49 +127,6 @@ let bindableKeys = { // =========================================================================== -let weekDays = [ - "Sunday", - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday" -]; - -// =========================================================================== - -let months = [ - "January", - "February", - "March", - "April", - "May", - "June", - "July", - "August", - "September", - "October", - "November", - "December" -]; - -// =========================================================================== - -let cardinalDirections = [ - "North", - "Northeast", - "East", - "Southeast", - "South", - "Southwest", - "West", - "Northwest", - "Unknown" -]; - -// =========================================================================== - let serverColours = { hex: { byType: { @@ -189,6 +146,7 @@ let serverColours = { clanOrange: "FF9900", vehiclePurple: "960096", jobYellow: "FFFF00", + npcPink: "DB7093", }, byName: { white: "FFFFFF", @@ -264,6 +222,7 @@ let serverColours = { businessBlue: toColour(0, 153, 255, 255), houseGreen: toColour(17, 204, 17, 255), clanOrange: toColour(255, 153, 0, 255), + npcPink: toColour(219, 112, 147, 255), }, }; @@ -1731,6 +1690,16 @@ function getSkinNameFromModel(model, gameId = getGame()) { // =========================================================================== +function getSkinNameFromIndex(index, gameId = getGame()) { + if(typeof getGameConfig().skins[gameId][index] != "undefined") { + return getGameConfig().skins[gameId][index][1]; + } + + return "Unknown"; +} + +// =========================================================================== + function getSkinModelFromName(name, gameId = getGame()) { let skins = getGameConfig().skins[gameId]; for(let i in skins) {