mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-07-22 10:29:54 +02:00
Changed to storing the reloadCheckValue. It's included in notification feedback
This commit is contained in:
parent
cb0d22a9a0
commit
b345db4f05
6 changed files with 38 additions and 13 deletions
|
|
@ -42,7 +42,7 @@ export default class DHActorRoll extends foundry.abstract.TypeDataModel {
|
|||
hasEffect: new fields.BooleanField({ initial: false }),
|
||||
hasSave: new fields.BooleanField({ initial: false }),
|
||||
hasTarget: new fields.BooleanField({ initial: false }),
|
||||
needsReload: new fields.BooleanField({ initial: false }),
|
||||
reloadCheckValue: new fields.NumberField({ integer: true, nullable: true, initial: null }),
|
||||
isDirect: new fields.BooleanField({ initial: false }),
|
||||
onSave: new fields.StringField(),
|
||||
source: new fields.SchemaField({
|
||||
|
|
@ -99,6 +99,10 @@ export default class DHActorRoll extends foundry.abstract.TypeDataModel {
|
|||
return this.item?.system.hasReload;
|
||||
}
|
||||
|
||||
get needsReload() {
|
||||
return this.reloadCheckValue === 1;
|
||||
}
|
||||
|
||||
get action() {
|
||||
const { actionActor, actionItem: itemAction } = this;
|
||||
if (!this.source.action) return null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue