add judgement power effect

This commit is contained in:
2024-06-18 10:49:37 -05:00
parent b1a128b692
commit f9824ad02e
18 changed files with 232 additions and 41 deletions
+47
View File
@@ -0,0 +1,47 @@
import { PowerEffect } from './basePowers.js';
export class InquisitorJudgementEffect extends PowerEffect {
get name() {
return 'Judgement';
}
get duration() {
return 0;
}
get icon() {
return 'icons/skills/social/trading-justice-scale-yellow.webp';
}
get isTargeted() {
return true;
}
get oneTarget() {
return true;
}
get modifiers() {
return [];
}
get effectName() {
return `${this.source.name}'s Judgement`;
}
get isRaisable() {
return false;
}
get description() {
return `${super.description}
<p>
Once per encounter as a free action, the inquisitor can pronounce judgment
on an enemy to gain five Judgment Tokens. A single token may be spent to
add +2 to a Trait or damage roll she makes against the judged, or −2 to one
of the foe's Trait or damage rolls. Judgment Tokens may be spent after the
roll, and remain in effect if the original total is rerolled.
</p>
`;
}
}
+2
View File
@@ -74,6 +74,7 @@ import { WallWalkerEffect } from './wallWalker.js';
import { MartialFlexibilityEffect, WarriorsGiftEffect } from './warriorsGift.js';
import { WishEffect } from './wish.js';
import { ZombieEffect } from './zombie.js';
import { InquisitorJudgementEffect } from './inquisitor.js';
const PowerClasses = {
'arcane-protection': ArcaneProtectionEffect,
@@ -120,6 +121,7 @@ const PowerClasses = {
illusion: IllusionEffect,
intangibility: IntangibilityEffect,
invisibility: InvisibliltyEffect,
judgement: InquisitorJudgementEffect,
'light-darkness': LightDarknessEffect,
lightdarkness: LightDarknessEffect,
light: LightDarknessEffect,