node-scripts/getItemsImages.js
/**
 * Creates an array with materials of all tiers and subtiers
 * 
 * @param resource - basic resource: PLANKS, CLOTH etc.
 * @returns string with all tiers and subtiers for materials
 */
Creates an array with materials of all tiers and subtiers

@param resource - basic resource: PLANKS, CLOTH etc.
@returns string with all tiers and subtiers for materials
Creates an array with materials of all tiers and subtiers @param resource - basic resource : PLANKS CLOTH etc . @returns string with all tiers and subtiers for materials
function createArrayOfAllResources(resource) {
  let allNames = [];
  for (let tier = 3; tier <= 8; tier++) {
    if (tier === 3 || resource === 'STONEBLOCK') {
      allNames.push(`T${tier}_` + resource);
      continue;
    }
    for (let subtier = 0; subtier <= 3; subtier++) {
      allNames.push(`T${tier}_` + resource + (subtier != 0 ? `_LEVEL${subtier}@${subtier}` : ''));
    }
  }
  return allNames;
}
function createArrayOfAllResources ( resource ) { let allNames = [ ] ; for ( let tier = 3 ; tier <= 8 ; tier ++ ) { if ( tier === 3 || resource === 'STONEBLOCK' ) { allNames . push ( ` ${ tier } ` + resource ) ; continue ; } for ( let subtier = 0 ; subtier <= 3 ; subtier ++ ) { allNames . push ( ` ${ tier } ` + resource + ( subtier != 0 ? ` ${ subtier } ${ subtier } ` : '' ) ) ; } } return allNames ; }
Creates an array with materials of all tiers and subtiers
Creates an array with materials of all tiers and subtiers