Skills below Skills categories + skills rollable

This commit is contained in:
2024-08-02 17:07:02 +02:00
parent e25c51a570
commit 1f2558b680
19 changed files with 114 additions and 37 deletions

View File

@ -167,7 +167,15 @@ export default class RMSSPlayerSheet extends ActorSheet {
spells.push(i);
}
}
// Parse skill categories and re+levant skills
for (let s of skillcat) {
s.skills = [];
for (let sk of playerskill) {
if (sk.system.category === s._id) {
s.skills.push(sk);
}
}
}
// Sort Skill/Skillcat Arrays
skillcat.sort(function(a, b) {
@ -198,6 +206,10 @@ export default class RMSSPlayerSheet extends ActorSheet {
context.armor = armor;
context.herbs = herbs;
context.spells = spells;
// Dump context to console
console.log(context);
}
async renderCharacterSettings(data) {