This commit is contained in:
Mike Bloy 2024-05-20 08:30:08 -05:00
parent 0d74ae787d
commit 4b087916b3
2 changed files with 14 additions and 16 deletions

View File

@ -464,8 +464,12 @@ export class PowerEffect {
return [];
}
get basePrimaryEffect() {
return this.createEffectDocument(this.icon, this.effectName, this.getPrimaryEffectChanges());
}
async createPrimaryEffect(maintId) {
const doc = this.createEffectDocument(this.icon, this.effectName, this.getPrimaryEffectChanges());
const doc = this.basePrimaryEffect;
if (moduleHelpers.useVAE) {
doc.flags['visual-active-effects'] = { data: { content: this.description } };
} else {

View File

@ -30,10 +30,6 @@ export class FlyEffect extends PowerEffect {
return true;
}
get usePrimaryEffect() {
return false;
}
get modifiers() {
const mods = super.modifiers;
mods.push({
@ -48,20 +44,18 @@ export class FlyEffect extends PowerEffect {
return mods;
}
async createSecondaryEffects(maintId) {
const docs = await super.createSecondaryEffects(maintId);
async parseValues() {
await super.parseValues();
const docLabel = 'SWADE.Flying';
const docName = 'Flying';
const doc = await PowerEffect.getStatus(docLabel, docName, false);
doc.description = this.description;
doc.flags = mergeObject(doc.flags ?? {}, {
[moduleName]: {
powerEffect: true,
maintId,
},
});
docs.push(doc);
return docs;
doc.description = `<p>From <strong>${this.source.name}</strong> casting <em>${this.name}</em></p>`;
doc.flags = mergeObject(doc.flags ?? {}, { [moduleName]: { powerEffect: true } });
(doc.duration = { rounds: 99 }), (this.baseEffectDoc = doc);
}
get basePrimaryEffect() {
return this.baseEffectDoc;
}
get _pace() {