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
-17
View File
@@ -144,23 +144,6 @@ export default class PrismRPGCharacter extends foundry.abstract.TypeDataModel {
}, {}),
)
// Core Skill system (Prism RPG)
schema.coreSkill = new fields.SchemaField({
skill: new fields.StringField({
required: false,
nullable: true,
initial: null,
choices: SYSTEM.CORE_SKILLS_CHOICES,
label: "Selected Core Skill"
}),
attributeChoice: new fields.StringField({
required: false,
nullable: true,
initial: null,
label: "Attribute Choice for +2 Bonus"
})
})
return schema
}
+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