fix: resolve ActiveEffect phase error, rollModes deprecation, Handlebars parse
Release Creation / build (release) Successful in 58s
Release Creation / build (release) Successful in 58s
- Remove prepareData/prepareBaseData no-ops so Actor._clearData() clears _completedActiveEffectPhases each cycle (fixes phase error) - Fallback from CONFIG.Dice.rollModes to CONFIG.ChatMessage.modes - Fix disabled attribute in HP max input (Handlebars parse warning)
This commit is contained in:
@@ -2,14 +2,6 @@ import AwERoll from "./roll.mjs"
|
||||
import { SYSTEM } from "../config/system.mjs"
|
||||
|
||||
export default class AwEActor extends Actor {
|
||||
/** @override */
|
||||
prepareData() {
|
||||
super.prepareData()
|
||||
}
|
||||
|
||||
/** @override */
|
||||
prepareBaseData() {}
|
||||
|
||||
/** @override */
|
||||
prepareDerivedData() {
|
||||
const actorData = this
|
||||
|
||||
@@ -80,8 +80,9 @@ export default class AwERoll extends Roll {
|
||||
const attrBonus = options.attributeBonus ?? 0
|
||||
const knowledgeBonuses = options.knowledgeBonuses ?? []
|
||||
|
||||
const modes = CONFIG.ChatMessage.modes ?? CONFIG.Dice.rollModes
|
||||
const rollModes = Object.fromEntries(
|
||||
Object.entries(CONFIG.Dice.rollModes).map(([k, v]) => [k, game.i18n.localize(v.label ?? v)])
|
||||
Object.entries(modes).map(([k, v]) => [k, game.i18n.localize(v.label ?? v)])
|
||||
)
|
||||
|
||||
// Bonus choices: -10 to +10
|
||||
|
||||
Reference in New Issue
Block a user