Add rest dice tracking for the Sync actors

This commit is contained in:
Oliver-Akins 2024-02-08 23:25:55 -07:00
parent 4544516c5c
commit 1002b1387c
8 changed files with 186 additions and 24 deletions

View file

@ -3,10 +3,18 @@ export class SyncData extends foundry.abstract.TypeDataModel {
const fields = foundry.data.fields;
return {
value: new fields.NumberField({
required: true,
integer: true,
initial: 100,
}),
rest_dice: new fields.NumberField({
integer: true,
initial: 0,
min: 0,
}),
milestones_hit: new fields.SetField(
new fields.NumberField({ integer: true, }),
{ initial: [] },
),
};
};
};
};