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:
parent
8e9827e5ae
commit
93d13a0b47
@ -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
|
- #44: protection effect and other default system effects still had duration
|
||||||
when added by the power effect, instead of maintaining their own effect.
|
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
|
## [3.1.1] 2024-07-26
|
||||||
|
|
||||||
|
|||||||
@ -555,13 +555,10 @@ export class PowerEffect {
|
|||||||
if (moduleHelpers.useVAE) {
|
if (moduleHelpers.useVAE) {
|
||||||
doc.flags['visual-active-effects'] = {
|
doc.flags['visual-active-effects'] = {
|
||||||
data: {
|
data: {
|
||||||
content: this.description,
|
|
||||||
inclusion: 1,
|
inclusion: 1,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
} else {
|
|
||||||
doc.description += this.description;
|
doc.description += this.description;
|
||||||
}
|
|
||||||
doc.statuses = doc.statuses ?? [];
|
doc.statuses = doc.statuses ?? [];
|
||||||
doc.statuses.push('powerEffect');
|
doc.statuses.push('powerEffect');
|
||||||
doc.flags[moduleName].maintId = maintId;
|
doc.flags[moduleName].maintId = maintId;
|
||||||
@ -579,11 +576,7 @@ export class PowerEffect {
|
|||||||
}
|
}
|
||||||
const doc = this.createEffectDocument(icon, `Maintaining ${this.effectName}`, this.getMaintainEffectChanges());
|
const doc = this.createEffectDocument(icon, `Maintaining ${this.effectName}`, this.getMaintainEffectChanges());
|
||||||
doc.duration.rounds = this.duration;
|
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.expiration = CONFIG.SWADE.CONST.STATUS_EFFECT_EXPIRATION.EndOfTurnPrompt;
|
||||||
doc.flags.swade.loseTurnOnHold = true;
|
doc.flags.swade.loseTurnOnHold = true;
|
||||||
doc.flags[moduleName].maintainingId = maintId;
|
doc.flags[moduleName].maintainingId = maintId;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user