import { DIFF_MODE, ROLL_MODE_SORT } from "./roll-constants.mjs" import { RollMode } from "./roll-mode.mjs" import { PART_SORT } from "./roll-part-sort.mjs" export class RollModeSort extends RollMode { get code() { return ROLL_MODE_SORT } get name() { return `lancer un sort` } visible(rollData) { return rollData.active.actor.isHautRevant() } title(rollData) { return `lance le sort:` } onSelect(rollData) { this.setDiffMode(rollData, DIFF_MODE.AUCUN) } }