forked from public/foundryvtt-reve-de-dragon
Nouvelle fenêtre de jets de dés
This commit is contained in:
19
module/roll/roll-part-action.mjs
Normal file
19
module/roll/roll-part-action.mjs
Normal file
@@ -0,0 +1,19 @@
|
||||
import { ROLLDIALOG_SECTION, RollPart } from "./roll-part.mjs"
|
||||
|
||||
export const PART_ACTION = "action"
|
||||
|
||||
export class RollPartAction extends RollPart {
|
||||
|
||||
get code() { return PART_ACTION }
|
||||
get section() { return ROLLDIALOG_SECTION.ACTION }
|
||||
|
||||
title(rollData) {
|
||||
return rollData.mode.label
|
||||
}
|
||||
|
||||
prepareContext(rollData) {
|
||||
const current = this.getCurrent(rollData)
|
||||
current.verb = rollData.mode.label
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user