From d4f155adc291d1e0254671807f019243906843ee Mon Sep 17 00:00:00 2001 From: Mike Bloy Date: Tue, 7 May 2024 21:34:08 -0500 Subject: [PATCH] add disguise --- scripts/powers.js | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/scripts/powers.js b/scripts/powers.js index ba0643a..315af26 100644 --- a/scripts/powers.js +++ b/scripts/powers.js @@ -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 + ` +

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.

` + } +} + const PowerClasses = { "arcane-protection": ArcaneProtectionEffect, banish: BanishEffect, @@ -886,6 +909,7 @@ const PowerClasses = { darksight: DarksightEffect, deflection: DeflectionEffect, "detect-conceal-arcana": DetectConcealArcanaEffect, + "disguise" : DisguiseEffect, "lower-trait": BoostLowerTraitEffect, }