mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-13 12:11:07 +01:00
Added Levelup data model and started at the render
This commit is contained in:
parent
ec303df84e
commit
3cc8800950
10 changed files with 618 additions and 409 deletions
|
|
@ -42,51 +42,17 @@ class DhLevelOption extends foundry.abstract.DataModel {
|
|||
checkboxQuantity: new fields.NumberField({ required: true, integer: true, initial: 1 }),
|
||||
minCost: new fields.NumberField({ required: true, integer: true, initial: 1 }),
|
||||
type: new fields.StringField({ required: true, choices: LevelOptionType }),
|
||||
choice: new fields.StringField(),
|
||||
value: new fields.NumberField({ integer: true }),
|
||||
amount: new fields.NumberField({ integer: true })
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
// class DhLevelOptionType extends foundry.abstract.DataModel {
|
||||
// static defineSchema(){
|
||||
// return new fields.SchemaField({
|
||||
// trait: new fields.SchemaField({
|
||||
// id: new fields.StringField({ required: true }),
|
||||
// label: new fields.StringField({ required: true }),
|
||||
// }),
|
||||
// attribute: new fields.SchemaField({
|
||||
// id: new fields.StringField({ required: true }),
|
||||
// label: new fields.StringField({ required: true }),
|
||||
// choice: new fields.StringField({ required: true, choices: attributeChoices })
|
||||
// }),
|
||||
// experience: new fields.SchemaField({
|
||||
// id: new fields.StringField({ required: true }),
|
||||
// label: new fields.StringField({ required: true }),
|
||||
// }),
|
||||
// domainCard: new fields.SchemaField({
|
||||
// id: new fields.StringField({ required: true }),
|
||||
// label: new fields.StringField({ required: true }),
|
||||
// }),
|
||||
// subclass: new fields.SchemaField({
|
||||
// id: new fields.StringField({ required: true }),
|
||||
// label: new fields.StringField({ required: true }),
|
||||
// }),
|
||||
// });
|
||||
// }
|
||||
// }
|
||||
|
||||
const LevelOptionType = {
|
||||
export const LevelOptionType = {
|
||||
trait: {
|
||||
id: 'trait',
|
||||
label: 'Character Trait'
|
||||
},
|
||||
// attribute: {
|
||||
// id: 'attribute',
|
||||
// label: 'Attribute',
|
||||
// choices: attributeChoices,
|
||||
// },
|
||||
hitPoint: {
|
||||
id: 'hitPoint',
|
||||
label: 'Hit Points'
|
||||
|
|
@ -121,25 +87,6 @@ const LevelOptionType = {
|
|||
}
|
||||
};
|
||||
|
||||
// const attributeChoices = {
|
||||
// hitPoint: {
|
||||
// id: 'hitPoint',
|
||||
// label: 'Hit Points',
|
||||
// },
|
||||
// stress: {
|
||||
// id: 'stress',
|
||||
// label: 'Stress',
|
||||
// },
|
||||
// evasion: {
|
||||
// id: 'evasion',
|
||||
// label: 'Evasion',
|
||||
// },
|
||||
// proficiency: {
|
||||
// id: 'proficiency',
|
||||
// label: 'Proficiency',
|
||||
// },
|
||||
// };
|
||||
|
||||
export const defaultLevelTiers = {
|
||||
tiers: {
|
||||
2: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue