mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-03-07 14:36:13 +01:00
progress
This commit is contained in:
parent
49163eef54
commit
7036a53c71
7 changed files with 45 additions and 21 deletions
|
|
@ -40,8 +40,8 @@ export default class ArmorEffect extends foundry.data.ActiveEffectTypeDataModel
|
|||
|
||||
prepareBaseData() {
|
||||
for (const change of this.changes) {
|
||||
change.key = 'system.armorTest';
|
||||
change.value = Math.max(change.max - change.marked, change.max);
|
||||
change.key = 'system.armorScore.value';
|
||||
change.value = Math.min(change.max - change.marked, change.max);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue