aboutsummaryrefslogtreecommitdiffstats
path: root/js/perso.js
blob: 02a889273d6588ed70c16a35a02fd4ea08639c9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
function displayPerso(hp,xp,lv){
	document.getElementById("hp").innerHTML = hp;
	document.getElementById("lv").innerHTML = lv;
	document.getElementById("xp").innerHTML = xp;
}

function updatePerso(perso) {
	data.hp = perso.hp;
	data.xp = perso.xp;
	data.level = perso.lv;
	displayPerso(perso.hp, perso.xp, perso.lv);
}