Closed itteerde closed 1 year ago
odd, it has
let updates = {
token: {
"displayName": CONST.TOKEN_DISPLAY_MODES.HOVER,
"flags.Tablerules.spellLevel": level
},
actor: {
'system.attributes.ac.flat': 13 + level,
'system.attributes.hp': { value: 40 + 15 * (level - 4), max: 40 + 15 * (level - 4) },
"system.details.cr": actor.system.attributes.prof,
"system.attributes.prof": actor.system.attributes.prof,
"flags.world.summoned.item": item.uuid,
"flags.world.summoned.actor": actor.uuid
},
embedded: {
Item: {
"Multiattack": { name: `Multiattack (${Math.floor(level / 2)} attacks)` },
"Slam": {
'system.damage.parts': [[`1d8 + 4 + ${level}`, "bludgeoning"]],
'system.attackBonus': `- @mod - @prof + ${summonerAttack}`,
},
"Stone Lethargy": {
'system.save.dc': summonerDc
}
}
}
}
was unarmored, change in compendium and Actor imported!
tested in ToA, works.