Ajouter compteurs success/echec pour les points de tache #215
This commit is contained in:
parent
e7c4be9e19
commit
4318af5495
@ -347,10 +347,10 @@ export class RdDActorSheet extends ActorSheet {
|
|||||||
html.find('.arme-label a').click(async event => {
|
html.find('.arme-label a').click(async event => {
|
||||||
let armeName = event.currentTarget.text;
|
let armeName = event.currentTarget.text;
|
||||||
let compName = event.currentTarget.attributes['data-competence-name'].value;
|
let compName = event.currentTarget.attributes['data-competence-name'].value;
|
||||||
let arme = this.actor.data.find(it =>
|
let arme = this.actor.data.items.find(it =>
|
||||||
it.name == armeName &&
|
it.name == armeName &&
|
||||||
RdDItemArme.isArme(it) &&
|
RdDItemArme.isArme(it) &&
|
||||||
((compName ?? it.data.competence) == it.data.competence)
|
((compName || it.data.data.competence) == it.data.data.competence)
|
||||||
);
|
);
|
||||||
if (!arme) {
|
if (!arme) {
|
||||||
arme = { name: armeName, data: { competence: compName } };
|
arme = { name: armeName, data: { competence: compName } };
|
||||||
|
Loading…
Reference in New Issue
Block a user