forked from public/bol
Add a PC list summary
This commit is contained in:
@ -343,7 +343,7 @@ export class BoLActor extends Actor {
|
||||
getDamageAttributeValue(attrDamage) {
|
||||
let attrDamageValue = 0
|
||||
if (attrDamage.includes("vigor")) {
|
||||
attrDamageValue = actor.system.attributes.vigor.value
|
||||
attrDamageValue = this.system.attributes.vigor.value
|
||||
if (attrDamage.includes("half")) {
|
||||
attrDamageValue = Math.floor(attrDamageValue / 2)
|
||||
}
|
||||
@ -405,7 +405,7 @@ export class BoLActor extends Actor {
|
||||
newPC = alchemy.system.properties.pccurrent + pcCost
|
||||
await this.updateEmbeddedDocuments('Item', [{ _id: alchemy.id, 'system.properties.pccurrent': newPC }])
|
||||
} else {
|
||||
ui.notifications.warn("Plus assez de Points de Création !")
|
||||
ui.notifications.warn( game.i18n.localize("BOL.ui.nomorealchemypoints") )
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -638,13 +638,13 @@ export class BoLActor extends Actor {
|
||||
} else if (protect.system.subtype == 'armor') {
|
||||
if (BoLUtility.getRollArmor()) {
|
||||
if (!protect.system.properties.soak.formula || protect.system.properties.soak.formula == "") {
|
||||
ui.notifications.warn(`L'armure ${protect.name} n'a pas de formule pour la protection !`)
|
||||
ui.notifications.warn( game.i18n.localize("BOL.ui.armornoformula", protect.name) )
|
||||
} else {
|
||||
formula += "+" + " max(" + protect.system.properties.soak.formula + ",0)"
|
||||
}
|
||||
} else {
|
||||
if (protect.system.properties.soak.value == undefined) {
|
||||
ui.notifications.warn(`L'armure ${protect.name} n'a pas de valeur fixe pour la protection !`)
|
||||
ui.notifications.warn( game.i18n.localize("BOL.ui.armornoformula", protect.name) )
|
||||
} else {
|
||||
formula += "+ " + protect.system.properties.soak.value
|
||||
}
|
||||
|
Reference in New Issue
Block a user