Nouvelle fenêtre de jets de dés
This commit is contained in:
19
module/roll/roll-mode-oeuvre.mjs
Normal file
19
module/roll/roll-mode-oeuvre.mjs
Normal file
@@ -0,0 +1,19 @@
|
||||
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)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user