Implement initiative rolling within Foundry
This commit is contained in:
parent
1002b1387c
commit
914b6e5862
4 changed files with 28 additions and 3 deletions
|
|
@ -132,6 +132,14 @@ async function preUntypedEmbed(item) {
|
|||
};
|
||||
};
|
||||
|
||||
/** @this {Actor} */
|
||||
function getRollData() {
|
||||
const data = {
|
||||
initiative: this.system.stats.hands ?? 0,
|
||||
};
|
||||
return data;
|
||||
};
|
||||
|
||||
export default {
|
||||
atAspectLimit,
|
||||
createCustomItem,
|
||||
|
|
@ -142,4 +150,5 @@ export default {
|
|||
genericEmbeddedDelete,
|
||||
preAspectEmbed,
|
||||
preUntypedEmbed,
|
||||
getRollData,
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue