Fix as per CSV sheet tracking + creature explanation
This commit is contained in:
@@ -93,6 +93,10 @@ export default class MGNEActor extends Actor {
|
||||
return result
|
||||
}
|
||||
|
||||
async rollArmorSave() {
|
||||
return MGNERoll.rollArmorSave(this)
|
||||
}
|
||||
|
||||
async rollWeapon(itemId) {
|
||||
const item = this.items.get(itemId)
|
||||
if (!item) return null
|
||||
@@ -129,7 +133,10 @@ export default class MGNEActor extends Actor {
|
||||
async rollProfileAttack() {
|
||||
const attackBaseLabel = normalizeGenericActionLabel(this.system.attack?.label ?? t("MGNE.Common.Attack"), t("MGNE.Common.Attack"))
|
||||
const attackLabel = formatActionLabel(attackBaseLabel, t("MGNE.Common.Attack"))
|
||||
const result = await this.rollAbility("strength", {
|
||||
// Creatures have no ability scores; ability value defaults to 0 via roll.mjs
|
||||
const result = await MGNERoll.promptCheck({
|
||||
actor: this,
|
||||
abilityId: "strength",
|
||||
label: attackLabel,
|
||||
rollType: "attack",
|
||||
})
|
||||
@@ -220,6 +227,12 @@ export default class MGNEActor extends Actor {
|
||||
return item.rollUsage()
|
||||
}
|
||||
|
||||
async rollDurability(itemId) {
|
||||
const item = this.items.get(itemId)
|
||||
if (!item) return null
|
||||
return MGNERoll.rollDurability(item)
|
||||
}
|
||||
|
||||
async quickRest() {
|
||||
const roll = await (new Roll("1d4")).evaluate()
|
||||
const hp = this.system.hp?.value ?? 0
|
||||
|
||||
Reference in New Issue
Block a user