This commit is contained in:
Mike Bloy 2024-06-07 16:23:39 -05:00
parent 1cb7abb7f5
commit 57e6ab1bd3
2 changed files with 60 additions and 0 deletions

View File

@ -62,6 +62,7 @@ import { TeleportEffect } from './teleport.js';
import { TimeStopEffect } from './timeStop.js'; import { TimeStopEffect } from './timeStop.js';
import { WallWalkerEffect } from './wallWalker.js'; import { WallWalkerEffect } from './wallWalker.js';
import { WarriorsGiftEffect } from './warriorsGift.js'; import { WarriorsGiftEffect } from './warriorsGift.js';
import { WishEffect } from './wish.js';
const PowerClasses = { const PowerClasses = {
'arcane-protection': ArcaneProtectionEffect, 'arcane-protection': ArcaneProtectionEffect,
@ -144,6 +145,7 @@ const PowerClasses = {
'time-stop': TimeStopEffect, 'time-stop': TimeStopEffect,
'wall-walker': WallWalkerEffect, 'wall-walker': WallWalkerEffect,
'warriors-gift': WarriorsGiftEffect, 'warriors-gift': WarriorsGiftEffect,
wish: WishEffect,
}; };
/* ---------------------------------------------------------------- */ /* ---------------------------------------------------------------- */

58
src/module/powers/wish.js Normal file
View File

@ -0,0 +1,58 @@
import { PowerEffect } from './basePowers.js';
export class WishEffect extends PowerEffect {
get name() {
return 'Wish';
}
get icon() {
return 'icons/magic/symbols/rune-sigil-green-purple.webp';
}
get duration() {
return 0;
}
get isTargeted() {
return false;
}
get isRaisable() {
return true;
}
get basePowerPoints() {
return 20;
}
get modifiers() {
return [];
}
get description() {
let desc = super.description;
desc += `<p>Bend reality to your will.
${this.data.raise ? 'With a raise there is no permanant cost' : 'The caster sacrifices 3 power points permanently'}.</p>
<p>Choose one of the following effects before casting.</p>
<ul>
<li><strong>Activate a power</strong>: cast any other available power, including modifiers.
Pay any difference in power points. Opposed rolls have an additional -2 penalty.</li>
<li><strong>Intercession</strong>: Wish for some sort of aid.</li>
<li><strong>Gain an edge</strong>: Grant someone a new permanent Edge.
Any given creature can only benefit from this type of wish once.</li>
<li><strong>Wealth</strong>: Wish for up to 10,000 gp worth of goods.</li>
<li><strong>Travel through time</strong>: Travel one minute back outside of combat or to the
start of the current round in combat.</li>
<li><strong>See the future</strong>: A look into the near future grants the
caster 3 conviction tokens that must be used by the caster or allies in
the next five rounds. A look into the far future lets the caster ask the GM
one question about the future and get as accurate an answer as possible.</li>
<li><strong>Raise a trait.</strong>: Raise a trait one die type. Any given
receipient can only benefit from this sort of wish once.</li>
<li><strong>Restore Fate:</strong> Caster and all Wild Cards in range may refill their Bennies.</li>
<li><strong>Special</strong>: GM and player work out 'relatively minor' non-retroactive changes.</li>
</ul>
`;
return desc;
}
}