function giveXP(xp) {
    for (let i = 0; i < currentCharacters.length; i++) {
        if (currentCharacters[i].hpLeft > 0) {
            currentCharacters[i].xp += xp;
            checkLvlUp(currentCharacters[i]);
        }
    }
}
/**
 * Gives all alive characters a set amount of xp.
 * @param {number} xp number of xp given.
 */
Gives all alive characters a set amount of xp.
@param {number} xp number of xp given.
Gives all alive characters a set amount of xp . @param { number } xp number of xp given .
function giveXP(xp) {
    for (let i = 0; i < currentCharacters.length; i++) {
        if (currentCharacters[i].hpLeft > 0) {
            currentCharacters[i].xp += xp;
            checkLvlUp(currentCharacters[i]);
        }
    }
}
function giveXP ( xp ) { for ( let i = 0 ; i < currentCharacters . length ; i ++ ) { if ( currentCharacters [ i ] . hpLeft > 0 ) { currentCharacters [ i ] . xp += xp ; checkLvlUp ( currentCharacters [ i ] ) ; } } }
Gives all alive characters a set amount of xp.
Gives all alive characters a set amount of xp .