Enhance sheets and add skill+effects

This commit is contained in:
2026-05-22 20:14:28 +02:00
parent 78fa804dc5
commit e3f9dedcf6
18 changed files with 459 additions and 35 deletions
+2
View File
@@ -8,3 +8,5 @@ export { default as AwEBackground } from "./background.mjs"
export { default as AwEKit } from "./kit.mjs"
export { default as AwEWeapon } from "./weapon.mjs"
export { default as AwEEquipment } from "./equipment.mjs"
export { default as AwESkill } from "./skill.mjs"
export { default as AwEEffect } from "./effect.mjs"
+8 -3
View File
@@ -37,11 +37,16 @@ export default class AwECreature extends foundry.abstract.TypeDataModel {
// Eureka Rubric
schema.eurekaClaims = new fields.StringField({ initial: "", required: false, nullable: true })
schema.eurekaEvidence = new fields.StringField({ initial: "", required: false, nullable: true })
schema.eurekaThreshold1 = new fields.StringField({ initial: "", required: false, nullable: true })
schema.eurekaThreshold2 = new fields.StringField({ initial: "", required: false, nullable: true })
schema.eurekaThreshold3 = new fields.StringField({ initial: "", required: false, nullable: true })
schema.eurekaThresholds = new fields.StringField({ initial: "", required: false, nullable: true })
schema.eurekaHints = new fields.StringField({ initial: "", required: false, nullable: true })
return schema
}
prepareDerivedData() {
super.prepareDerivedData()
for (const attr of Object.values(this.attributes)) {
attr.dc = 10 + attr.mod
}
}
}
+10
View File
@@ -0,0 +1,10 @@
export default class AwEEffect extends foundry.abstract.TypeDataModel {
static defineSchema() {
const fields = foundry.data.fields
const schema = {}
schema.description = new fields.HTMLField({ required: true, textSearch: true })
return schema
}
}
+10
View File
@@ -0,0 +1,10 @@
export default class AwESkill extends foundry.abstract.TypeDataModel {
static defineSchema() {
const fields = foundry.data.fields
const schema = {}
schema.description = new fields.HTMLField({ required: true, textSearch: true })
return schema
}
}