mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-07-22 02:19:54 +02:00
Removed outcommented code
This commit is contained in:
parent
5693c4c1a9
commit
7384402023
1 changed files with 0 additions and 19 deletions
|
|
@ -199,25 +199,6 @@ export default class DHActorRoll extends foundry.abstract.TypeDataModel {
|
||||||
update.system.damage.types[key] = { roll: reroll.toJSON() };
|
update.system.damage.types[key] = { roll: reroll.toJSON() };
|
||||||
}
|
}
|
||||||
|
|
||||||
// const update = { system: { damage: {} } };
|
|
||||||
// for (const partKey in this.damage) {
|
|
||||||
// const part = this.damage[partKey];
|
|
||||||
// const testRoll = Roll.fromData(part.parts[0].roll);
|
|
||||||
// const rerolled = await testRoll.reroll();
|
|
||||||
// rerolls.push(rerolled);
|
|
||||||
|
|
||||||
// if (!update.system.damage[partKey]) update.system.damage[partKey] = { parts: [part.parts[0]] };
|
|
||||||
// const partData = update.system.damage[partKey].parts[0];
|
|
||||||
// update.system.damage[partKey].total = rerolled.total;
|
|
||||||
// partData.modifierTotal = rerolled.terms.reduce((acc, x) => {
|
|
||||||
// if (x.isDeterministic && !x.operator) acc += x.total;
|
|
||||||
// return acc;
|
|
||||||
// }, 0);
|
|
||||||
// partData.dice = rerolled.dice.map(d => ({ ...d.toJSON(), dice: d.denomination }));
|
|
||||||
// partData.total = rerolled.total;
|
|
||||||
// partData.roll = rerolled.toJSON();
|
|
||||||
// }
|
|
||||||
|
|
||||||
await triggerChatRollFx(rerolls);
|
await triggerChatRollFx(rerolls);
|
||||||
|
|
||||||
return update;
|
return update;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue