Ajout de la commande /voyage et grosse MAJK de la commande /auberge
This commit is contained in:
@@ -1,10 +1,15 @@
|
||||
if (args.test.options.useOnesArgumentative && (args.test.result.roll <= game.settings.get("wfrp4e", "automaticSuccess") || args.test.result.roll <= args.test.target)) {
|
||||
|
||||
let SL = Math.floor(args.test.target / 10) - Math.floor(args.test.result.roll / 10)
|
||||
let ones = Number(args.test.result.roll.toString().split("").pop())
|
||||
let SL = Math.floor(args.test.target / 10) - Math.floor(args.test.result.roll / 10)
|
||||
let ones = Number(args.test.result.roll.toString().split("").pop())
|
||||
|
||||
if (ones > SL) {
|
||||
args.test.data.result.SL = "+" + (ones + args.test.successBonus + args.test.slBonus)
|
||||
args.test.result.other.push(`<b>${this.effect.name}</b>: Utilise le dé d'unité comme DR`)
|
||||
}
|
||||
if (ones == 0) {
|
||||
ones = 10;
|
||||
}
|
||||
|
||||
|
||||
if (ones > SL) {
|
||||
args.Test.data.result.SL = "+" + (ones + args.test.successBonus + args.test.slBonus)
|
||||
args.test.result.other.push(`<b>${this.effect.name}</b>: Utilisation de l'unité des dés comme DR`)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user