Merge dice-roller branch

This commit is contained in:
2024-07-26 14:15:51 +02:00
parent 193c097882
commit 803604c1fe
32 changed files with 1458 additions and 34 deletions

View File

@ -105,12 +105,14 @@ export class RMSSItem extends Item {
}
else
{
const items = this.parent.items;
const items = this.parent?.items;
console.log(`rmss | item.js | Skill ${this.name} has owner, calculating skill category bonus.`);
for (const item of items) {
if (item.type === "skill_category" && item._id === itemData.system.category) {
console.log(`rmss | item.js | Calculating Skill Category bonus for skill: ${this.name}`);
this.system.category_bonus = item.system.total_bonus;
if (items) {
for (const item of items) {
if (item.type === "skill_category" && item._id === itemData.system.category) {
console.log(`rmss | item.js | Calculating Skill Category bonus for skill: ${this.name}`);
this.system.category_bonus = item.system.total_bonus;
}
}
}
}