Montrer/cacher l'archétype
This commit is contained in:
@ -611,6 +611,18 @@ export class RdDActor extends Actor {
|
||||
console.log("Competence not found", compName);
|
||||
}
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
async updateCompetenceArchetype( compName, compValue )
|
||||
{
|
||||
let comp = this.getCompetence(compName);
|
||||
if ( comp ) {
|
||||
const update = {_id: comp._id, 'data.niveau_archetype': compValue };
|
||||
const updated = await this.updateEmbeddedEntity("OwnedItem", update); // Updates one EmbeddedEntity
|
||||
} else {
|
||||
console.log("Competence not found", compName);
|
||||
}
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
async updateCompteurValue( fieldName, fieldValue )
|
||||
|
Reference in New Issue
Block a user