Re-org folders and enhance minor CSS stuff

This commit is contained in:
2026-01-04 09:21:21 +01:00
parent 61ed1597e7
commit 0836cada75
32 changed files with 251 additions and 155 deletions

View File

@@ -99,12 +99,22 @@ export default class LethalFantasyCharacterSheet extends LethalFantasyActorSheet
context.damageReduction = this.actor.computeDamageReduction()
context.damageReductionShield = this.actor.getShieldDR()
break
case "skills":
case "skills": {
context.tab = context.tabs.skills
context.skills = doc.itemTypes.skill
// Organiser les skills par catégorie
const categories = ['layperson', 'professional', 'weapon', 'armor', 'resist']
context.skillsByCategory = categories.map(cat => {
return {
category: cat,
label: `LETHALFANTASY.Skill.Category.${cat}`,
skills: context.skills.filter(s => s.system.category === cat)
}
}).filter(catData => catData.skills.length > 0)
context.gifts = doc.itemTypes.gift
context.vulnerabilities = doc.itemTypes.vulnerability
break
}
case "spells":
context.tab = context.tabs.spells
context.spells = doc.itemTypes.spell