First PC sheet, WIP

This commit is contained in:
2025-12-20 17:20:01 +01:00
parent 189b03ca91
commit e75824cd20
19 changed files with 961 additions and 600 deletions
+9 -2
View File
@@ -36,6 +36,13 @@ export default class PrismRPGSkill extends foundry.abstract.TypeDataModel {
label: "Is Core Skill"
})
// Primary attribute for this skill (str, dex, con, int, wis, cha)
schema.primaryAttribute = new fields.StringField({
required: true,
initial: "dex",
label: "Primary Attribute"
})
// If Core Skill, which attribute receives the +2 bonus?
schema.attributeBonus = new fields.StringField({
required: true,
@@ -107,9 +114,9 @@ export default class PrismRPGSkill extends foundry.abstract.TypeDataModel {
prepareDerivedData() {
super.prepareDerivedData()
// If this is the character's Core Skill, apply bonuses
// D&D 5e style: Core Skill gives +2 proficiency bonus
if (this.isCoreSkill) {
this.modifier = CORE_SKILL_BONUS?.basic || 5
this.modifier = 2
this.canAdvancedCheck = true
} else {
this.modifier = 0