forked from public/foundryvtt-reve-de-dragon
Nouvelle fenêtre de jets de dés
This commit is contained in:
12
module/roll/roll-part-opponent.mjs
Normal file
12
module/roll/roll-part-opponent.mjs
Normal file
@@ -0,0 +1,12 @@
|
||||
import { ROLLDIALOG_SECTION, RollPart } from "./roll-part.mjs"
|
||||
|
||||
const OPPONENT = "opponent"
|
||||
|
||||
export class RollPartOpponent extends RollPart {
|
||||
|
||||
get code() { return OPPONENT }
|
||||
get section() { return ROLLDIALOG_SECTION.ACTION }
|
||||
|
||||
visible(rollData) { return rollData.mode.opposed }
|
||||
title(rollData) { return rollData.opponent?.name ?? '' }
|
||||
}
|
Reference in New Issue
Block a user