tellement de trucs

This commit is contained in:
rwanoux
2024-05-13 18:27:54 +02:00
parent 9cee590267
commit 83c3f1df0b
83 changed files with 1457 additions and 702 deletions
+3 -6
View File
@@ -13,9 +13,7 @@ export class VermineUtils {
if (totems.human) {
NoD--;
modFormula = "(1D10cs>=" + difficulty + `[human_${game.user.name}]*2)`;
await actor.update({
"system.adaptation.totems.human.value": actor.system.adaptation.totems.human.value - 1
})
}
// Vérification des totems adaptés
if (totems.adapted) {
@@ -26,9 +24,7 @@ export class VermineUtils {
} else {
modFormula = "(1D10cs>=" + difficulty + `[adapted_${game.user.name}]*2)`;
}
await actor.update({
"system.adaptation.totems.adapted.value": actor.system.adaptation.totems.adapted.value - 1
})
};
// Construction de la formule de base
@@ -45,6 +41,7 @@ export class VermineUtils {
let roll = new Roll(formula, actor.getRollData());
//effectuer le lancé
await roll.evaluate();
roll.dice.forEach(die => die.options.appearance = { system: "vermine2047" })
//afficher le lancer 3d
await VermineUtils.showDiceSoNice(roll);
// afficher le résultat dans le chat