function giveXPToChar(xp, character) {
        if (character.hpLeft > 0) {
            character.xp += xp;
            checkLvlUp(character);
    }
}
/**
 * Gives a specific characte a set amount of xp.
 * @param {number} xp number of xp given.
 * @param {Character} character the chosen character
 */
Gives a specific characte a set amount of xp.
@param {number} xp number of xp given.
@param {Character} character the chosen character
Gives a specific characte a set amount of xp . @param { number } xp number of xp given . @param { Character } character the chosen character
function giveXPToChar(xp, character) {
        if (character.hpLeft > 0) {
            character.xp += xp;
            checkLvlUp(character);
    }
}
function giveXPToChar ( xp , character ) { if ( character . hpLeft > 0 ) { character . xp += xp ; checkLvlUp ( character ) ; } }
Gives a specific characte a set amount of xp.
Gives a specific characte a set amount of xp .