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:
@@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
- #44: protection effect and other default system effects still had duration
|
||||
when added by the power effect, instead of maintaining their own effect.
|
||||
- Since VAE did away with the collapsable extra description, moved the spell
|
||||
description to the main 'description' field of active effects.
|
||||
|
||||
## [3.1.1] 2024-07-26
|
||||
|
||||
|
||||
@@ -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