Various updates
This commit is contained in:
@ -31,8 +31,11 @@ export default class LethalFantasyCharacterSheet extends LethalFantasyActorSheet
|
||||
skills: {
|
||||
template: "systems/fvtt-lethal-fantasy/templates/character-skills.hbs",
|
||||
},
|
||||
weapons: {
|
||||
template: "systems/fvtt-lethal-fantasy/templates/character-weapons.hbs",
|
||||
combat: {
|
||||
template: "systems/fvtt-lethal-fantasy/templates/character-combat.hbs",
|
||||
},
|
||||
equipment: {
|
||||
template: "systems/fvtt-lethal-fantasy/templates/character-equipment.hbs",
|
||||
},
|
||||
spells: {
|
||||
template: "systems/fvtt-lethal-fantasy/templates/character-spells.hbs",
|
||||
@ -57,7 +60,8 @@ export default class LethalFantasyCharacterSheet extends LethalFantasyActorSheet
|
||||
#getTabs() {
|
||||
let tabs = {
|
||||
skills: { id: "skills", group: "sheet", icon: "fa-solid fa-shapes", label: "LETHALFANTASY.Label.skills" },
|
||||
weapons: { id: "weapons", group: "sheet", icon: "fa-solid fa-swords", label: "LETHALFANTASY.Label.weapons" },
|
||||
combat: { id: "combat", group: "sheet", icon: "fa-solid fa-swords", label: "LETHALFANTASY.Label.combat" },
|
||||
equipment: { id: "equipment", group: "sheet", icon: "fa-solid fa-backpack", label: "LETHALFANTASY.Label.equipment" },
|
||||
biography: { id: "biography", group: "sheet", icon: "fa-solid fa-book", label: "LETHALFANTASY.Label.biography" },
|
||||
}
|
||||
if (this.actor.system.biodata.magicUser) {
|
||||
@ -106,13 +110,16 @@ export default class LethalFantasyCharacterSheet extends LethalFantasyActorSheet
|
||||
context.miracles = doc.itemTypes.miracle
|
||||
context.hasMiracles = context.miracles.length > 0
|
||||
break
|
||||
case "weapons":
|
||||
context.tab = context.tabs.weapons
|
||||
case "combat":
|
||||
context.tab = context.tabs.combat
|
||||
context.weapons = doc.itemTypes.weapon
|
||||
context.armors = doc.itemTypes.armor
|
||||
break
|
||||
case "equipment":
|
||||
context.tab = context.tabs.equipment
|
||||
context.equipments = doc.itemTypes.equipment
|
||||
break
|
||||
case "biography":
|
||||
case "biography":
|
||||
context.tab = context.tabs.biography
|
||||
context.enrichedDescription = await TextEditor.enrichHTML(doc.system.description, { async: true })
|
||||
context.enrichedNotes = await TextEditor.enrichHTML(doc.system.notes, { async: true })
|
||||
|
Reference in New Issue
Block a user