Compare commits

...

1 Commits

Author SHA1 Message Date
uberwald 3c92532601 Correction sur bonus armes
Release Creation / build (release) Failing after 1m39s
2026-05-19 00:23:20 +02:00
3 changed files with 3 additions and 2 deletions
@@ -714,6 +714,7 @@ export class BaseCharacterSheetL5r5e extends BaseSheetL5r5e {
return { return {
uuid: item.uuid, uuid: item.uuid,
skill: item.system.skill, skill: item.system.skill,
bonus: parseInt(item.system.bonus || 0),
}; };
} }
+1 -1
View File
@@ -282,7 +282,7 @@ export class CharacterSheetL5r5e extends BaseCharacterSheetL5r5e {
const weapon = this._getWeaponInfos(el.data("weapon-id") || null); const weapon = this._getWeaponInfos(el.data("weapon-id") || null);
const skillId = weapon?.skill || el.data("skill"); const skillId = weapon?.skill || el.data("skill");
const ringId = el.data("ring") || this.actor.system?.default_ring || "void"; const ringId = el.data("ring") || this.actor.system?.default_ring || "void";
new game.l5r5e.ChiaroscuroDiceDialog({ actor: this.actor, ringId, skillId, itemUuid: weapon?.uuid }).render(true); new game.l5r5e.ChiaroscuroDiceDialog({ actor: this.actor, ringId, skillId, itemUuid: weapon?.uuid, arcaneBonus: weapon?.bonus ?? 0 }).render(true);
} }
/** /**
+1 -1
View File
@@ -127,6 +127,6 @@ export class NpcSheetL5r5e extends BaseCharacterSheetL5r5e {
const weapon = this._getWeaponInfos(el.data("weapon-id") || null); const weapon = this._getWeaponInfos(el.data("weapon-id") || null);
const skillId = weapon?.skill || el.data("skill"); const skillId = weapon?.skill || el.data("skill");
const ringId = el.data("ring") || this.actor.system?.default_ring || "void"; const ringId = el.data("ring") || this.actor.system?.default_ring || "void";
new game.l5r5e.ChiaroscuroDiceDialog({ actor: this.actor, ringId, skillId, itemUuid: weapon?.uuid }).render(true); new game.l5r5e.ChiaroscuroDiceDialog({ actor: this.actor, ringId, skillId, itemUuid: weapon?.uuid, arcaneBonus: weapon?.bonus ?? 0 }).render(true);
} }
} }