Add party an army sheeets
This commit is contained in:
@@ -107,11 +107,13 @@ export default class OathHammerNPCSheet extends OathHammerActorSheet {
|
||||
context.tab = context.tabs.magic
|
||||
context.spells = (doc.itemTypes.spell ?? []).map(s => ({
|
||||
id: s.id, uuid: s.uuid, img: s.img, name: s.name, system: s.system,
|
||||
_descTooltip: s.system.effect?.replace(/<[^>]+>/g, "").slice(0, 300) ?? ""
|
||||
_descTooltip: s.system.effect?.replace(/<[^>]+>/g, "").slice(0, 300) ?? "",
|
||||
traditionLabel: game.i18n.localize(SYSTEM.SORCEROUS_TRADITIONS[s.system.tradition]?.label ?? s.system.tradition)
|
||||
}))
|
||||
context.miracles = (doc.itemTypes.miracle ?? []).map(m => ({
|
||||
id: m.id, uuid: m.uuid, img: m.img, name: m.name, system: m.system,
|
||||
_descTooltip: m.system.effect?.replace(/<[^>]+>/g, "").slice(0, 300) ?? ""
|
||||
_descTooltip: m.system.effect?.replace(/<[^>]+>/g, "").slice(0, 300) ?? "",
|
||||
traditionLabel: game.i18n.localize(SYSTEM.DIVINE_TRADITIONS[m.system.divineTradition] ?? m.system.divineTradition)
|
||||
}))
|
||||
break
|
||||
case "equipment":
|
||||
|
||||
Reference in New Issue
Block a user