add mind reading and mind wipe
This commit is contained in:
parent
4908c6d4a7
commit
1cd4a08990
@ -33,6 +33,10 @@ export class MindReadingEffect extends PowerEffect {
|
||||
return false;
|
||||
}
|
||||
|
||||
get isRaisable() {
|
||||
return false;
|
||||
}
|
||||
|
||||
get modifiers() {
|
||||
return [
|
||||
...super.modifiers,
|
||||
|
||||
81
src/module/powers/mindWipe.js
Normal file
81
src/module/powers/mindWipe.js
Normal file
@ -0,0 +1,81 @@
|
||||
import { PowerEffect } from './basePowers.js';
|
||||
|
||||
export class MindWipeEffect extends PowerEffect {
|
||||
get name() {
|
||||
return 'Mind Wipe';
|
||||
}
|
||||
|
||||
get icon() {
|
||||
return 'icons/magic/control/hypnosis-mesmerism-eye.webp';
|
||||
}
|
||||
|
||||
get duration() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
get isTargeted() {
|
||||
return true;
|
||||
}
|
||||
|
||||
get isDamaging() {
|
||||
return false;
|
||||
}
|
||||
|
||||
get oneTarget() {
|
||||
return true;
|
||||
}
|
||||
|
||||
get basePowerPoints() {
|
||||
return 3;
|
||||
}
|
||||
|
||||
get usePrimaryEffect() {
|
||||
return false;
|
||||
}
|
||||
|
||||
get isRaisable() {
|
||||
return false;
|
||||
}
|
||||
|
||||
get modifiers() {
|
||||
return [
|
||||
...super.modifiers,
|
||||
{
|
||||
type: 'checkbox',
|
||||
name: 'Edit',
|
||||
id: 'edit',
|
||||
value: 1,
|
||||
epic: false,
|
||||
effect: false,
|
||||
},
|
||||
{
|
||||
type: 'checkbox',
|
||||
name: 'Fast Cast',
|
||||
id: 'fast',
|
||||
value: 2,
|
||||
epic: false,
|
||||
effect: false,
|
||||
},
|
||||
{
|
||||
type: 'checkbox',
|
||||
default: false,
|
||||
name: 'Greater Mind Wipe',
|
||||
value: 2,
|
||||
epic: true,
|
||||
effect: false,
|
||||
id: 'greater',
|
||||
},
|
||||
];
|
||||
}
|
||||
|
||||
get description() {
|
||||
let text = super.description;
|
||||
text += `<p>Opposed roll vs victim's Smarts. Mind Wipe takes
|
||||
${this.data.fast ? 'a single action' : 'a full minute of concentration'}
|
||||
to complete. On success by the caster, the caster may
|
||||
${this.data.edit ? 'edit or alter' : 'remove'} the subject's memory of
|
||||
${this.data.greater ? 'a single event, person, place or thing' : 'about 30 minutes of time, or several hours with a raise'}.
|
||||
`;
|
||||
return text;
|
||||
}
|
||||
}
|
||||
@ -38,6 +38,7 @@ import { LightDarknessEffect } from './lightdarkness.js';
|
||||
import { LocateEffect } from './locate.js';
|
||||
import { MindLinkEffect } from './mindLink.js';
|
||||
import { MindReadingEffect } from './mindReading.js';
|
||||
import { MindWipeEffect } from './mindWipe.js';
|
||||
|
||||
const PowerClasses = {
|
||||
'arcane-protection': ArcaneProtectionEffect,
|
||||
@ -89,6 +90,7 @@ const PowerClasses = {
|
||||
'lower-trait': BoostLowerTraitEffect,
|
||||
'mind-link': MindLinkEffect,
|
||||
'mind-reading': MindReadingEffect,
|
||||
'mind-wipe': MindWipeEffect,
|
||||
shrink: GrowthShrinkEffect,
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user