mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-07-22 02:19:54 +02:00
TagTeamDialog somewhat working
This commit is contained in:
parent
221b84726d
commit
7a036821d9
5 changed files with 69 additions and 76 deletions
|
|
@ -3,6 +3,7 @@ import ForeignDocumentUUIDArrayField from '../fields/foreignDocumentUUIDArrayFie
|
|||
import TagTeamData from '../tagTeamData.mjs';
|
||||
import GroupRollData from '../groupRollData.mjs';
|
||||
import { GoldField } from '../fields/actorField.mjs';
|
||||
import { ChatDamageData } from '../chat-message/chatDamageData.mjs';
|
||||
|
||||
export default class DhParty extends BaseDataActor {
|
||||
/** @inheritdoc */
|
||||
|
|
@ -48,6 +49,15 @@ export default class DhParty extends BaseDataActor {
|
|||
}
|
||||
}
|
||||
|
||||
prepareDerivedData() {
|
||||
for (const memberKey in this.tagTeam.members) {
|
||||
const member = this.tagTeam.members[memberKey];
|
||||
member.damageRollData = member.rollData?.options.damage ?
|
||||
ChatDamageData.fromJSON(JSON.stringify(member.rollData.options.damage)) : null;
|
||||
member.damageRollData?.prepareRolls();
|
||||
}
|
||||
}
|
||||
|
||||
_onCreate(data, options, userId) {
|
||||
super._onCreate(data, options, userId);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue