untested intangibility
This commit is contained in:
parent
ecd614db33
commit
c577a8ec0f
1
package-lock.json
generated
1
package-lock.json
generated
@ -4,7 +4,6 @@
|
|||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "swade-mb-helpers",
|
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@league-of-foundry-developers/foundry-vtt-types": "^9.280.0",
|
"@league-of-foundry-developers/foundry-vtt-types": "^9.280.0",
|
||||||
"eslint": "^8.48.0",
|
"eslint": "^8.48.0",
|
||||||
|
|||||||
@ -376,6 +376,36 @@ class EntangleEffect extends TargetedPowerEffect {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class IntangibilityEffect extends TargetedPowerEffect {
|
||||||
|
get name () {
|
||||||
|
return 'Intangility'
|
||||||
|
}
|
||||||
|
|
||||||
|
get durationRounds () {
|
||||||
|
if (!this.inputs) {
|
||||||
|
return 5
|
||||||
|
}
|
||||||
|
if (this.inputs[this.inputs.length - 1]) { // Duration
|
||||||
|
return 50
|
||||||
|
}
|
||||||
|
return 5 // no duration
|
||||||
|
}
|
||||||
|
|
||||||
|
prepMenu () {
|
||||||
|
this.menuData.inputs.push({ type: 'checkbox', label: 'Duration', options: false })
|
||||||
|
this.menuData.buttons = [
|
||||||
|
{ label: 'Apply', value: 'apply' },
|
||||||
|
{ label: 'Cancel', value: 'cancel' }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
prepResult () {
|
||||||
|
const icon = 'icons/magic/control/debuff-energy-hold-levitate-blue-yellow.webp'
|
||||||
|
const effect = shim.createEffectDocument(icon, this.name, this.durationRounds, [])
|
||||||
|
this.effectDocs.push(effect)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const PowerClasses = {
|
const PowerClasses = {
|
||||||
blind: BlindEffect,
|
blind: BlindEffect,
|
||||||
'boost/lower trait': BoostLowerTraitEffect,
|
'boost/lower trait': BoostLowerTraitEffect,
|
||||||
@ -383,6 +413,7 @@ const PowerClasses = {
|
|||||||
confusion: ConfusionEffect,
|
confusion: ConfusionEffect,
|
||||||
deflection: DeflectionEffect,
|
deflection: DeflectionEffect,
|
||||||
entangle: EntangleEffect,
|
entangle: EntangleEffect,
|
||||||
|
inangibility: IntangibilityEffect,
|
||||||
'lower trait': BoostLowerTraitEffect
|
'lower trait': BoostLowerTraitEffect
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user