Begin playing around with a custom DataField for dice selection that will allow using the default AE modes on it
This commit is contained in:
parent
484c7a375c
commit
761961a7fb
3 changed files with 76 additions and 2 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import DOTDUNGEON from "../../config.mjs";
|
||||
import { DiceField } from "../fields/DiceField.mjs";
|
||||
|
||||
function diceChoiceField() {
|
||||
return new foundry.data.fields.StringField({
|
||||
|
|
@ -38,7 +39,7 @@ export class PlayerData extends foundry.abstract.TypeDataModel {
|
|||
integer: true,
|
||||
}),
|
||||
stats: new fields.SchemaField({
|
||||
build: diceChoiceField(),
|
||||
build: new DiceField(),
|
||||
meta: diceChoiceField(),
|
||||
presence: diceChoiceField(),
|
||||
hands: diceChoiceField(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue