node-scripts/getItemsImages.js
/**
 * Creates an array with items of all tiers and subtiers
 * 
 * @param itemName - item name: T4_2H_NATURESTAFF_KEEPER etc.
 */
Creates an array with items of all tiers and subtiers

@param itemName - item name: T4_2H_NATURESTAFF_KEEPER etc.
Creates an array with items of all tiers and subtiers @param itemName - item name : T4_2H_NATURESTAFF_KEEPER etc .
function createArrayOfAllItems(itemName) {
  let allNames = [];
  for (let tier = 4; tier <= 8; tier++) {
    for (let subtier = 0; subtier <= 3; subtier++) {
      allNames.push(`T${tier}` + itemName.slice(2) + (subtier != 0 ? `@${subtier}` : ''));
    }
  }
  return allNames;
}
function createArrayOfAllItems ( itemName ) { let allNames = [ ] ; for ( let tier = 4 ; tier <= 8 ; tier ++ ) { for ( let subtier = 0 ; subtier <= 3 ; subtier ++ ) { allNames . push ( ` ${ tier } ` + itemName . slice ( 2 ) + ( subtier != 0 ? ` ${ subtier } ` : '' ) ) ; } } return allNames ; }
Creates an array with items of all tiers and subtiers
Creates an array with items of all tiers and subtiers