Foundry v10 version

This commit is contained in:
2022-07-01 16:00:49 +02:00
parent cc1964093d
commit 996ac1c88d
9 changed files with 100 additions and 113 deletions

View File

@ -624,7 +624,7 @@ export class BoLActor extends Actor {
/* -------------------------------------------- */
rollWeaponDamage(itemId) {
let weapon = duplicate(this.system.items.get(itemId))
let weapon = duplicate(this.items.get(itemId))
if (weapon) {
let r = new BoLDefaultRoll({ id: randomID(16), isSuccess: true, mode: "weapon", weapon: weapon, actorId: this.id, actor: this })
r.setSuccess(true)

View File

@ -574,7 +574,7 @@ export class BoLDefaultRoll {
let actor = game.actors.get( (actorId) ? actorId: this.rollData.actorId)
if (attrDamage.includes("vigor")) {
attrDamageValue = actor.data.data.attributes.vigor.value
attrDamageValue = actor.system.attributes.vigor.value
if (attrDamage.includes("half")) {
attrDamageValue = Math.floor(attrDamageValue / 2)
}