mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 03:31:07 +01:00
Added initial countdown upon creating a CountdownAction
This commit is contained in:
parent
3465df8a30
commit
69853fd9d6
1 changed files with 14 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue