forked from public/foundryvtt-reve-de-dragon
Amélioration export voies draconiques
This commit is contained in:
@ -115,6 +115,7 @@ export class Mapping {
|
||||
static prepareArmes(actor) {
|
||||
return actor.items.filter(it => it.type == ITEM_TYPES.arme)
|
||||
.map(arme => {
|
||||
// TODO: gestion armes 1 ou 2 mains
|
||||
const compToUse = RdDItemArme.getCompetenceArme(arme, 'competence');
|
||||
const comp = actor.getCompetence(compToUse);
|
||||
const bonusDom = Mapping.calculBonusDom(comp, actor)
|
||||
@ -183,7 +184,7 @@ export class Mapping {
|
||||
static prepareSorts(actor) {
|
||||
return actor.itemTypes[ITEM_TYPES.sort].map(it => {
|
||||
return {
|
||||
voie: it.system.voie,
|
||||
voie: RdDItemSort.getCodeDraconic(it),
|
||||
description: Mapping.descriptionSort(it),
|
||||
bonus: Mapping.bonusCase(it)
|
||||
}
|
||||
|
Reference in New Issue
Block a user