Added initial countdown upon creating a CountdownAction

This commit is contained in:
WBHarry 2025-11-20 11:09:43 +01:00
parent 3465df8a30
commit 69853fd9d6

View file

@ -12,4 +12,18 @@ export default class DhCountdownAction extends DHBaseAction {
}
};
}
/** @inheritdoc */
static getSourceConfig(parent) {
const updateSource = game.system.api.data.actions.actionsTypes.base.getSourceConfig(parent);
updateSource['countdown'] = [
{
...game.system.api.data.countdowns.DhCountdown.defaultCountdown(),
name: parent.parent.name,
img: parent.parent.img
}
];
return updateSource;
}
}