update packs with new game information

This commit is contained in:
2023-09-10 22:57:44 -05:00
parent e35046cecb
commit 208fbb9def
26 changed files with 129 additions and 7 deletions
+47 -7
View File
@@ -530,10 +530,14 @@ class SmiteEffect extends TargetedPowerEffect {
class SummonEffect extends PowerEffect {
ICON = 'icons/magic/symbols/runes-triangle-blue.webp'
get actorFolder () {
get actorFolderBase () {
return 'Summonables'
}
get actorFolder () {
return `${this.actorFolderBase}/${this.name}`
}
get name () {
return 'Summon Creature'
}
@@ -724,12 +728,8 @@ class SummonAllyEffect extends SummonEffect {
return 'Summon Ally'
}
get actorFolder () {
return `${super.actorFolder}/Summon Ally`
}
get mirrorFolder () {
return `${super.actorFolder}/Mirror Selves`
return `${this.actorFolderBase}/Mirror Selves`
}
async prepMenu () {
@@ -885,6 +885,36 @@ class SummonAllyEffect extends SummonEffect {
}
}
class SummonAnimalEffect extends SummonEffect {
get name () {
return 'Summon Animal'
}
}
class SummonMonsterEffect extends SummonEffect {
get name () {
return 'Summon Monster'
}
}
class SummonNaturesAllyEffect extends SummonEffect {
get name () {
return "Summon Nature's Ally"
}
}
class SummonPlanarAllyEffect extends SummonEffect {
get name () {
return 'Summon Planar Ally'
}
}
class SummonUndeadEffect extends SummonEffect {
get name () {
return 'Summon Undead'
}
}
const PowerClasses = {
blind: BlindEffect,
'boost/lower trait': BoostLowerTraitEffect,
@@ -897,11 +927,21 @@ const PowerClasses = {
'lower trait': BoostLowerTraitEffect,
protection: ProtectionEffect,
smite: SmiteEffect,
'summon ally': SummonAllyEffect
'summon ally': SummonAllyEffect,
'summon animal': SummonAnimalEffect,
'summon monster': SummonMonsterEffect,
"summon nature's ally": SummonNaturesAllyEffect,
'summon planar ally': SummonPlanarAllyEffect,
'summon undead': SummonUndeadEffect
}
export async function powerEffects (options = {}) {
const token = 'token' in options ? options.token : []
if (token === undefined || token === null) {
shim.notifications.error('Please select one token')
return
}
const targets = 'targets' in options ? Array.from(options.targets) : []
const item = 'item' in options ? options.item : null
const name = 'name' in options ? options.name : (item !== null ? item.name : null)