First version with weapons

This commit is contained in:
2024-08-23 11:45:23 +02:00
parent 45ee08e6c2
commit 8cb2969d70
22 changed files with 3648 additions and 3493 deletions

View File

@ -28,9 +28,17 @@ export default class RMFRPWeaponSheet extends ItemSheet {
item: baseData.item,
system: baseData.item.system,
config: CONFIG.rmfrp,
skills: {},
criticalTables: {},
attackTables: game.rmfrp.attackTables.getTableDef(),
enrichedDescription: enrichedDescription
};
}
console.log("Parent", this.object)
// Add the skill data to the sheet if the item is owned
if (this.object.actor) {
sheetData.skills = this.object.actor.getOwnedItemsByType("skill");
}
console.log(sheetData);
return sheetData;
}
}