2024-10-25 11:14:29 +02:00
|
|
|
let mutations = await warhammer.utility.findAllItems("mutation", "Loading Mutations")
|
2024-05-17 12:46:44 +02:00
|
|
|
let roll = Math.floor(CONFIG.Dice.randomUniform() * mutations.length);
|
|
|
|
this.actor.createEmbeddedDocuments("Item", [mutations[roll]]);
|
|
|
|
this.script.scriptNotification(`Added ${mutations[roll].name}`)
|