function renderImages(type, num) {
    const $runePics = $(`#primary-runes-${num}`);
    let keystoneLength = 3;
    let hold = "";
    let make = `<div id="primary-runes-subs-${num}"></div>`;
    $runePics.append(make)
    const $primaryPics = $(`#primary-runes-subs-${num}`);

    if (type == "Precision" || type == "Domination") {
        keystoneLength = 4;
    }

    for (let i = 0; i < keystoneLength; i++) {
        hold = `<image id="${type}-keystone-${i}-${num}" class="keystones clickable runes keystones-${num}" src="Assets/Runes/${type}/Keystones/${i}.png"></image>`
        $primaryPics.append(hold)
        keystoneClick(type, i, num);
    }
 
    

    let subs = `
    <div>
        ${subRunes("primary", type, "LineOne", num)}
    </div>

    <div>
        ${subRunes("primary", type, "LineTwo", num)}
    </div>

    <div>
        ${subRunes("primary", type, "LineThree", num)}
    </div>
    `;

    $primaryPics.append(subs);

    for (let i=0; i<3; i++) {
        lineClick("primary", type, "LineOne", i, num);
        lineClick("primary", type, "LineTwo", i, num);
        lineClick("primary", type, "LineThree", i, num);    
    }
    lineClick("primary", type, "LineThree", 3, num);
}
/**
 * Renders keystones and all the runes of a certain rune type, as well as apply 
 * click events to the pictures
 */
Renders keystones and all the runes of a certain rune type, as well as apply
click events to the pictures
Renders keystones and all the runes of a certain rune type as well as apply click events to the pictures
function renderImages(type, num) {
    const $runePics = $(`#primary-runes-${num}`);
    let keystoneLength = 3;
    let hold = "";
    let make = `<div id="primary-runes-subs-${num}"></div>`;
    $runePics.append(make)
    const $primaryPics = $(`#primary-runes-subs-${num}`);
    if (type == "Precision" || type == "Domination") {
        keystoneLength = 4;
    }
    for (let i = 0; i < keystoneLength; i++) {
        hold = `<image id="${type}-keystone-${i}-${num}" class="keystones clickable runes keystones-${num}" src="Assets/Runes/${type}/Keystones/${i}.png"></image>`
        $primaryPics.append(hold)
        keystoneClick(type, i, num);
    }
    let subs = `
    <div>
        ${subRunes("primary", type, "LineOne", num)}
    </div>
    <div>
        ${subRunes("primary", type, "LineTwo", num)}
    </div>
    <div>
        ${subRunes("primary", type, "LineThree", num)}
    </div>
    `;
    $primaryPics.append(subs);
    for (let i=0; i<3; i++) {
        lineClick("primary", type, "LineOne", i, num);
        lineClick("primary", type, "LineTwo", i, num);
        lineClick("primary", type, "LineThree", i, num);    
    }
    lineClick("primary", type, "LineThree", 3, num);
}
function renderImages ( type , num ) { const $runePics = $ ( ` ${ num } ` ) ; let keystoneLength = 3 ; let hold = "" ; let make = ` ${ num } ` ; $runePics . append ( make ) const $primaryPics = $ ( ` ${ num } ` ) ; if ( type == "Precision" || type == "Domination" ) { keystoneLength = 4 ; } for ( let i = 0 ; i < keystoneLength ; i ++ ) { hold = ` ${ type } ${ i } ${ num } ${ num } ${ type } ${ i } ` $primaryPics . append ( hold ) keystoneClick ( type , i , num ) ; } let subs = ` ${ subRunes ( "primary" , type , "LineOne" , num ) } ${ subRunes ( "primary" , type , "LineTwo" , num ) } ${ subRunes ( "primary" , type , "LineThree" , num ) } ` ; $primaryPics . append ( subs ) ; for ( let i = 0 ; i < 3 ; i ++ ) { lineClick ( "primary" , type , "LineOne" , i , num ) ; lineClick ( "primary" , type , "LineTwo" , i , num ) ; lineClick ( "primary" , type , "LineThree" , i , num ) ; } lineClick ( "primary" , type , "LineThree" , 3 , num ) ; }
Renders keystones and all the runes of a certain rune type, as well as apply
 click events to the pictures
Renders keystones and all the runes of a certain rune type as well as apply click events to the pictures