Skip to content

Commit

Permalink
Update base.js
Browse files Browse the repository at this point in the history
  • Loading branch information
psychoph committed Oct 29, 2020
1 parent cd96168 commit 636d297
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions module/actor/sheets/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ export default class ActorSheetSS2e extends ActorSheet {
if (dwestimate > data.dwounds.value){
dwounds = dwestimate
}

if(edata.value == 1 && data.wounds.value == 1){
wounds = 0
}
Expand Down Expand Up @@ -813,7 +813,8 @@ export default class ActorSheetSS2e extends ActorSheet {
return raises
}

const nd = rolldata['skilldice'] + parseInt(form.trait.value) + parseInt(form.bonusDice.value)
const nd = parseInt(rolldata['skilldice']) + parseInt(form.trait.value) + parseInt(form.bonusDice.value)

let d10 = new Die({faces: 10, number: nd}).evaluate()
let exploded = false
let matcharr = CONFIG.SVNSEA2E.match10
Expand Down Expand Up @@ -957,7 +958,7 @@ export default class ActorSheetSS2e extends ActorSheet {

// Toggle default roll mode
const rollMode = game.settings.get('core', 'rollMode')
if (['gmroll', 'blindroll'].includes(rollMode)) chatData.whisper = ChatMessage.getWhisperIDs('GM')
if (['gmroll', 'blindroll'].includes(rollMode)) chatData.whisper = ChatMessage.getWhisperRecipients('GM')
if (rollMode === 'blindroll') chatData.blind = true

// Create the chat message
Expand Down

0 comments on commit 636d297

Please sign in to comment.