Init, competences de base, fix creation de perso, etc
This commit is contained in:
parent
c32be6b24d
commit
a0733dc049
@ -571,7 +571,10 @@ export class TeDeumActor extends Actor {
|
|||||||
async rollDegatsArme(armeId) {
|
async rollDegatsArme(armeId) {
|
||||||
let weapon = this.items.get(armeId)
|
let weapon = this.items.get(armeId)
|
||||||
if (weapon) {
|
if (weapon) {
|
||||||
let bDegats = this.getBonusDegats()
|
let bDegats = 0
|
||||||
|
if ( weapon.system.typeArme == "melee" ) {
|
||||||
|
bDegats = this.getBonusDegats()
|
||||||
|
}
|
||||||
let formula = weapon.system.degats + "+" + bDegats.value
|
let formula = weapon.system.degats + "+" + bDegats.value
|
||||||
let degatsRoll = await new Roll(formula).roll()
|
let degatsRoll = await new Roll(formula).roll()
|
||||||
await TeDeumUtility.showDiceSoNice(degatsRoll, game.settings.get("core", "rollMode") )
|
await TeDeumUtility.showDiceSoNice(degatsRoll, game.settings.get("core", "rollMode") )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user