import { DIFF_MODE, ROLL_MODE_OEUVRE } from "./roll-constants.mjs" import { PART_OEUVRE } from "./roll-part-oeuvre.mjs" import { RollMode } from "./roll-mode.mjs" export class RollModeOeuvre extends RollMode { get code() { return ROLL_MODE_OEUVRE } get name() { return `Interpréter une oeuvre` } visible(rollData) { return rollData.active.actor.isPersonnage() } title(rollData) { const current = rollData.current[PART_OEUVRE] return `${current.art.action} ${current.label}` } onSelect(rollData) { this.setDiffMode(rollData, DIFF_MODE.AUCUN) } }