Fix #38 - Auto set bond values

This commit is contained in:
2025-02-06 20:55:14 +01:00
parent 75a81e589b
commit 7341580a7b
9 changed files with 19 additions and 19 deletions

View File

@ -52,6 +52,13 @@ export default class CthulhuEternalActor extends Actor {
continue
}
}
if (i.type === "bond") {
if (i.system.bondType === "individual") {
i.system.value = this.system.characteristics.cha.value
} else {
i.system.value = Math.floor(this.system.resources.permanentRating / 2)
}
}
newData.push(i)
}
return super.createEmbeddedDocuments(embeddedName, newData, operation)