glamaholic-to-collections
Advanced tools
Comparing version 1.0.2 to 1.0.3
17
lib.js
@@ -12,2 +12,17 @@ import * as fs from "node:fs"; | ||
const isValidSlot = (slot) => { | ||
switch (slot) { | ||
case "MainHand": | ||
case "OffHand": | ||
case "Head": | ||
case "Body": | ||
case "Hands": | ||
case "Legs": | ||
case "Feet": | ||
return true; | ||
default: | ||
return false; | ||
} | ||
}; | ||
export const convertPlates = (glamaholicConfig) => | ||
@@ -19,3 +34,3 @@ glamaholicConfig["Plates"].map((plate) => ({ | ||
(acc, [slot, item]) => { | ||
if (slot === "$type") return acc; | ||
if (!isValidSlot(slot)) return acc; | ||
@@ -22,0 +37,0 @@ return { |
{ | ||
"name": "glamaholic-to-collections", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Convert Glamaholic data to Collections", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
5354
122