Set up DhLevelTier datamodel

This commit is contained in:
WBHarry 2025-05-27 13:43:45 +02:00
parent 63274d67ce
commit 0e0507fe6f
8 changed files with 462 additions and 110 deletions

View file

@ -31,9 +31,9 @@ export default class DhpActor extends Actor {
return acc;
}, {});
changed.system.attributes = Object.keys(this.system.attributes).reduce((acc, key) => {
changed.system.traits = Object.keys(this.system.traits).reduce((acc, key) => {
acc[key] = {
levelMarks: this.system.attributes[key].levelMarks.filter(
levelMarks: this.system.traits[key].levelMarks.filter(
x => x <= changed.system.levelData.currentLevel
)
};