move effect description to description field
Since Visual Active Effects did away with the special collapsable description field, moved the active effect description for power effects to the effect's 'description' field.
This commit is contained in:
@@ -555,13 +555,10 @@ export class PowerEffect {
|
||||
if (moduleHelpers.useVAE) {
|
||||
doc.flags['visual-active-effects'] = {
|
||||
data: {
|
||||
content: this.description,
|
||||
inclusion: 1,
|
||||
},
|
||||
};
|
||||
} else {
|
||||
doc.description += this.description;
|
||||
}
|
||||
doc.description += this.description;
|
||||
doc.statuses = doc.statuses ?? [];
|
||||
doc.statuses.push('powerEffect');
|
||||
doc.flags[moduleName].maintId = maintId;
|
||||
@@ -579,11 +576,7 @@ export class PowerEffect {
|
||||
}
|
||||
const doc = this.createEffectDocument(icon, `Maintaining ${this.effectName}`, this.getMaintainEffectChanges());
|
||||
doc.duration.rounds = this.duration;
|
||||
if (moduleHelpers.useVAE) {
|
||||
doc.flags['visual-active-effects'] = { data: { content: this.description } };
|
||||
} else {
|
||||
doc.description += this.description;
|
||||
}
|
||||
doc.description += this.description;
|
||||
doc.flags.swade.expiration = CONFIG.SWADE.CONST.STATUS_EFFECT_EXPIRATION.EndOfTurnPrompt;
|
||||
doc.flags.swade.loseTurnOnHold = true;
|
||||
doc.flags[moduleName].maintainingId = maintId;
|
||||
|
||||
Reference in New Issue
Block a user