Compute initiative

This commit is contained in:
2020-09-02 22:00:35 +02:00
parent ca8bf7f6d5
commit fd9a54e677
2 changed files with 74 additions and 1 deletions

View File

@ -75,7 +75,15 @@ export class RdDActorSheet extends ActorSheet {
if (melee.name == arme.data.competence )
arme.data.niveau = melee.data.niveau
}
}
for ( const tir of data.competenceByCategory.tir ) {
if (tir.name == arme.data.competence )
arme.data.niveau = tir.data.niveau
}
for ( const lancer of data.competenceByCategory.lancer ) {
if (lancer.name == arme.data.competence )
arme.data.niveau = lancer.data.niveau
}
}
// To avoid armour and so on...
data.data.armes_seules = duplicate( this._checkNull(data.itemsByType['arme']));