calculate and use eBE for Talent
This commit is contained in:
parent
7ac9649768
commit
437a27ad28
@ -877,7 +877,11 @@ class DSA41_ActorSheet extends DSA41_ApplicationMixin(ActorSheetV2) {
|
|||||||
if (roll_type == "talent") {
|
if (roll_type == "talent") {
|
||||||
const title = game.i18n.localize("DSA41.roll_types." + roll_type) + ": " + item.name;
|
const title = game.i18n.localize("DSA41.roll_types." + roll_type) + ": " + item.name;
|
||||||
const data = await DSA41_Dialog.wait("Talent", { window: {title: title}, item: item });
|
const data = await DSA41_Dialog.wait("Talent", { window: {title: title}, item: item });
|
||||||
const talentwert = item.system.talentwert + data.modifikator;
|
|
||||||
|
const eBE = (await new Roll(item.system.behinderung || "0", { BE: this.document.system.computed.kampf.ruestungen_gesamt.gesamt_behinderung }).evaluate()).total;
|
||||||
|
data.modifikator += eBE;
|
||||||
|
|
||||||
|
const talentwert = item.system.talentwert - data.modifikator;
|
||||||
|
|
||||||
const roll1 = (await new Roll("1d20").evaluate()).total;
|
const roll1 = (await new Roll("1d20").evaluate()).total;
|
||||||
const roll2 = (await new Roll("1d20").evaluate()).total;
|
const roll2 = (await new Roll("1d20").evaluate()).total;
|
||||||
@ -895,7 +899,7 @@ class DSA41_ActorSheet extends DSA41_ApplicationMixin(ActorSheetV2) {
|
|||||||
|
|
||||||
const context = {
|
const context = {
|
||||||
talent: item,
|
talent: item,
|
||||||
modifikator: data.modifikator,
|
modifikator: -data.modifikator,
|
||||||
|
|
||||||
attribute1: { type: item.system.attribute1, value: attribute1 },
|
attribute1: { type: item.system.attribute1, value: attribute1 },
|
||||||
attribute2: { type: item.system.attribute2, value: attribute3 },
|
attribute2: { type: item.system.attribute2, value: attribute3 },
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user