Downtime window now enumerates the actions/resources that will be refreshed upon completion. Resources can now specify their progression direction (#591)

This commit is contained in:
WBHarry 2025-08-05 13:43:14 +02:00 committed by GitHub
parent 645b8fef58
commit 599e9c7aa0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 140 additions and 2 deletions

View file

@ -56,6 +56,11 @@ export default class BaseDataItem extends foundry.abstract.TypeDataModel {
initial: null,
nullable: true
}),
progression: new fields.StringField({
required: true,
choices: CONFIG.DH.ITEM.itemResourceProgression,
initial: CONFIG.DH.ITEM.itemResourceProgression.increasing.id
}),
diceStates: new fields.TypedObjectField(
new fields.SchemaField({
value: new fields.NumberField({ integer: true, initial: 1, min: 1 }),