projet-clicodrome/js/collegue.js
2024-12-10 15:43:57 +01:00

20 lines
No EOL
461 B
JavaScript

class Collegue{
constructor(nom) {
this.nom = nom
}
async chargerDepuisBdd() {
let data = await fetch("../bdd/arbre.json")
data = await data.json()
this.props = data["collegues"][this.nom]
this.nom = this.props.nom
this.cout = this.props.cout
this.boost = this.props.boost
}
afficherAnimationDebloquage(){
// animation sympathique lorsque l'on achète un personnage
}
}