Better rolls + perks

This commit is contained in:
2023-01-02 14:54:59 +01:00
parent 7ceada98fb
commit 2da3d19dbe
6 changed files with 55 additions and 13 deletions

View File

@ -271,8 +271,11 @@ export class DarkStarsUtility {
}
rollData.roll = myRoll
rollData.diceResult = myRoll.total
rollData.isSuccess = rollData.diceResult <= rollData.percentValue
rollData.isFailure = rollData.diceResult > rollData.percentValue
rollData.isCriticalSuccess = rollData.diceResult <= rollData.skill.derivated.value
rollData.isCriticalFailure = rollData.diceResult == 100
rollData.isSuccess = rollData.diceResult == 1 || rollData.diceResult <= rollData.percentValue
rollData.isFailure = rollData.diceResult == 100 || rollData.diceResult > rollData.percentValue
rollData.degrees = Math.floor(rollData.percentValue/10) - Math.floor(rollData.diceResult/10)
let msg = await this.createChatWithRollMode(rollData.alias, {
content: await renderTemplate(`systems/fvtt-dark-stars/templates/chat/chat-generic-result.hbs`, rollData)