node-scripts/getItemsImages.js
/**
 * Creates an array with artefacts of all tiers
 * 
 * @param itemName - artefact item name: T4_2H_NATURESTAFF_KEEPER etc.
 * @returns string with all tiers for artefacts
 */
Creates an array with artefacts of all tiers

@param itemName - artefact item name: T4_2H_NATURESTAFF_KEEPER etc.
@returns string with all tiers for artefacts
Creates an array with artefacts of all tiers @param itemName - artefact item name : T4_2H_NATURESTAFF_KEEPER etc . @returns string with all tiers for artefacts
function createArrayOfAllArtifacts(itemName) {
  let allNames = [];
  if (itemName.includes('ROYAL')) {
    for (let tier = 4; tier <= 8; tier++) {
      allNames.push(`QUESTITEM_TOKEN_ROYAL_T${tier}`);
    }
    return allNames;
  }
  if (itemName.includes('INSIGHT')) {
    allNames.push(`T4_SKILLBOOK_STANDARD`);
    return allNames;
  }
  if (itemName.includes('CAPEITEM')) {
    for (let tier = 4; tier <= 8; tier++) {
      allNames.push(`T${tier}_${itemName.slice(3)}_BP`);
    }
    return allNames;
  }
  for (let tier = 4; tier <= 8; tier++) {
    allNames.push(`T${tier}_ARTEFACT${itemName.slice(2)}`);
  }
  return allNames;
}
function createArrayOfAllArtifacts ( itemName ) { let allNames = [ ] ; if ( itemName . includes ( 'ROYAL' ) ) { for ( let tier = 4 ; tier <= 8 ; tier ++ ) { allNames . push ( ` ${ tier } ` ) ; } return allNames ; } if ( itemName . includes ( 'INSIGHT' ) ) { allNames . push ( ` ` ) ; return allNames ; } if ( itemName . includes ( 'CAPEITEM' ) ) { for ( let tier = 4 ; tier <= 8 ; tier ++ ) { allNames . push ( ` ${ tier } ${ itemName . slice ( 3 ) } ` ) ; } return allNames ; } for ( let tier = 4 ; tier <= 8 ; tier ++ ) { allNames . push ( ` ${ tier } ${ itemName . slice ( 2 ) } ` ) ; } return allNames ; }
Creates an array with artefacts of all tiers
Creates an array with artefacts of all tiers