foundryvtt-wh4-lang-fr-fr/scripts/U1UpSRJOSjPpO4HS.js

4 lines
290 B
JavaScript
Raw Permalink Normal View History

2024-10-25 11:14:29 +02:00
let mutations = await warhammer.utility.findAllItems("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]]);
this.script.scriptNotification(`Ajout ${mutations[roll].name}`)