function itemStats(items, champion) {
    for (let i = 0; i < items.length; i++) {
        let itemWanted = itemSearch(items[i]);
        if (itemWanted != undefined) {
            if (itemWanted.FlatHPPoolMod != null) {
                champion.health += itemWanted.FlatHPPoolMod;
                champion.bonushealth += itemWanted.FlatHPPoolMod;
            }
            if (itemWanted.FlatArmorMod != null) {
                champion.armor += itemWanted.FlatArmorMod;
                champion.bonusArmor += itemWanted.FlatArmorMod;
            }       
            if (itemWanted.FlatSpellBlockMod != null) {
                champion.mr += itemWanted.FlatSpellBlockMod;
                champion.bonusMR += itemWanted.FlatSpellBlockMod;
            }
            if (itemWanted.PercentAttackSpeedMod != null && champion.bAtkSpeed != null) {
                champion.bAtkSpeed += itemWanted.PercentAttackSpeedMod;
            }
            if (itemWanted.FlatPhysicalDamageMod != null) {
                champion.bonusAD += itemWanted.FlatPhysicalDamageMod;
            }
            if (itemWanted.FlatMagicDamageMod != null) {
                champion.bonusAP += itemWanted.FlatMagicDamageMod;
            }
            if (itemWanted.FlatCritChanceMod != null && champion.crit != null) {
                champion.crit += itemWanted.FlatCritChanceMod;
            }
            if (itemWanted.FlatMPPoolMod != null) {
                champion.mana += itemWanted.FlatMPPoolMod;
            }
        }
    }
}
/*item calculations def champ
* gargoyle's stoneplate needs exception
* ninja tabi's exceptions
* shield items like hexdrinker, steraks exceptions
* takes into account hp, armor, mr
*/
item calculations def champ
gargoyle's stoneplate needs exception
ninja tabi's exceptions
shield items like hexdrinker, steraks exceptions
takes into account hp, armor, mr
item calculations def champ gargoyle ' s stoneplate needs exception ninja tabi ' s exceptions shield items like hexdrinker steraks exceptions takes into account hp armor mr
function itemStats(items, champion) {
    for (let i = 0; i < items.length; i++) {
        let itemWanted = itemSearch(items[i]);
        if (itemWanted != undefined) {
            if (itemWanted.FlatHPPoolMod != null) {
                champion.health += itemWanted.FlatHPPoolMod;
                champion.bonushealth += itemWanted.FlatHPPoolMod;
            }
            if (itemWanted.FlatArmorMod != null) {
                champion.armor += itemWanted.FlatArmorMod;
                champion.bonusArmor += itemWanted.FlatArmorMod;
            }       
            if (itemWanted.FlatSpellBlockMod != null) {
                champion.mr += itemWanted.FlatSpellBlockMod;
                champion.bonusMR += itemWanted.FlatSpellBlockMod;
            }
            if (itemWanted.PercentAttackSpeedMod != null && champion.bAtkSpeed != null) {
                champion.bAtkSpeed += itemWanted.PercentAttackSpeedMod;
            }
            if (itemWanted.FlatPhysicalDamageMod != null) {
                champion.bonusAD += itemWanted.FlatPhysicalDamageMod;
            }
            if (itemWanted.FlatMagicDamageMod != null) {
                champion.bonusAP += itemWanted.FlatMagicDamageMod;
            }
            if (itemWanted.FlatCritChanceMod != null && champion.crit != null) {
                champion.crit += itemWanted.FlatCritChanceMod;
            }
            if (itemWanted.FlatMPPoolMod != null) {
                champion.mana += itemWanted.FlatMPPoolMod;
            }
        }
    }
}
function itemStats ( items , champion ) { for ( let i = 0 ; i < items . length ; i ++ ) { let itemWanted = itemSearch ( items [ i ] ) ; if ( itemWanted != undefined ) { if ( itemWanted . FlatHPPoolMod != null ) { champion . health += itemWanted . FlatHPPoolMod ; champion . bonushealth += itemWanted . FlatHPPoolMod ; } if ( itemWanted . FlatArmorMod != null ) { champion . armor += itemWanted . FlatArmorMod ; champion . bonusArmor += itemWanted . FlatArmorMod ; } if ( itemWanted . FlatSpellBlockMod != null ) { champion . mr += itemWanted . FlatSpellBlockMod ; champion . bonusMR += itemWanted . FlatSpellBlockMod ; } if ( itemWanted . PercentAttackSpeedMod != null && champion . bAtkSpeed != null ) { champion . bAtkSpeed += itemWanted . PercentAttackSpeedMod ; } if ( itemWanted . FlatPhysicalDamageMod != null ) { champion . bonusAD += itemWanted . FlatPhysicalDamageMod ; } if ( itemWanted . FlatMagicDamageMod != null ) { champion . bonusAP += itemWanted . FlatMagicDamageMod ; } if ( itemWanted . FlatCritChanceMod != null && champion . crit != null ) { champion . crit += itemWanted . FlatCritChanceMod ; } if ( itemWanted . FlatMPPoolMod != null ) { champion . mana += itemWanted . FlatMPPoolMod ; } } } }
item calculations def champ
gargoyle's stoneplate needs exception
ninja tabi's exceptions
shield items like hexdrinker, steraks exceptions
takes into account hp, armor, mr
item calculations def champ gargoyle ' s stoneplate needs exception ninja tabi ' s exceptions shield items like hexdrinker steraks exceptions takes into account hp armor mr