Damage Types

This commit is contained in:
Dapoolp 2025-07-11 17:26:11 +02:00
parent 081ebf5bb3
commit 4246e3c9b5
19 changed files with 112 additions and 34 deletions

View file

@ -14,6 +14,10 @@ export default class DamageRoll extends DHRoll {
super.postEvaluate(roll, config);
config.roll.type = config.type;
config.roll.modifierTotal = this.calculateTotalModifiers(roll);
}
static async buildPost(roll, config, message) {
await super.buildPost(roll, config, message);
if (config.source?.message) {
const chatMessage = ui.chat.collection.get(config.source.message);
chatMessage.update({ 'system.damage': config });