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:
Oliver-Akins 2024-04-18 23:33:55 -06:00
parent 484c7a375c
commit 761961a7fb
3 changed files with 76 additions and 2 deletions

View file

@ -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(),