add disguise

This commit is contained in:
Mike Bloy 2024-05-07 21:34:08 -05:00
parent 4d44b6c31c
commit d4f155adc2

View File

@ -868,6 +868,29 @@ class DetectConcealArcanaEffect extends PowerEffect {
} }
} }
class DisguiseEffect extends PowerEffect {
get name () { return 'Disguise' }
get icon () { return 'icons/equipment/head/mask-carved-wood-white.webp' }
get duration () { return 100 }
get basePowerPoints () { return 2 }
get isTargeted () { return true }
get hasAdditionalRecipients () { return true }
get additionalRecipientCost () { return 1 }
get modifiers () {
return [
...super.modifiers,
{name: 'Size', value: 1, id: 'size', epic: false, effect: false}
]
}
get description () {
let size = this.data.mods.has('size') ? 'of the same size as' : 'within two sizes of'
return super.description + `
<p>Assume the appearance of another person ${size} the recipient. Anyone
who has cause to doubt the disguise may make a Notice roll at ${this.data.raise ? -4 : -4}
as a free action to see through the disguise.</p>`
}
}
const PowerClasses = { const PowerClasses = {
"arcane-protection": ArcaneProtectionEffect, "arcane-protection": ArcaneProtectionEffect,
banish: BanishEffect, banish: BanishEffect,
@ -886,6 +909,7 @@ const PowerClasses = {
darksight: DarksightEffect, darksight: DarksightEffect,
deflection: DeflectionEffect, deflection: DeflectionEffect,
"detect-conceal-arcana": DetectConcealArcanaEffect, "detect-conceal-arcana": DetectConcealArcanaEffect,
"disguise" : DisguiseEffect,
"lower-trait": BoostLowerTraitEffect, "lower-trait": BoostLowerTraitEffect,
} }