import { ROLL_MODE_DEFENSE } from "./roll-constants.mjs" import { ROLLDIALOG_SECTION, RollPart } from "./roll-part.mjs" export const PART_DEFENSE = 'defense' export class RollPartDefense extends RollPart { get code() { return PART_DEFENSE } get section() { return ROLLDIALOG_SECTION.CHOIX } visible(rollData) { return this.isRollMode(rollData, ROLL_MODE_DEFENSE) } loadRefs(rollData) { const refs = this.getRefs(rollData) refs.defenses =[] } }