2024-05-17 12:46:44 +02:00
|
|
|
let mutations = await game.wfrp4e.utility.findAll("mutation", "Chargement des mutations")
|
2024-05-16 17:57:51 +02:00
|
|
|
let roll = Math.floor(CONFIG.Dice.randomUniform() * mutations.length);
|
|
|
|
this.actor.createEmbeddedDocuments("Item", [mutations[roll]]);
|
2024-05-17 12:46:44 +02:00
|
|
|
this.script.scriptNotification(`Ajout ${mutations[roll].name}`)
|