mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-04-21 23:13:39 +02:00
Stuff
This commit is contained in:
parent
1fea8438ba
commit
7af3f07a26
14 changed files with 260 additions and 16 deletions
|
|
@ -43,17 +43,40 @@ class DhLevelTier extends foundry.abstract.DataModel {
|
|||
}
|
||||
}
|
||||
|
||||
class DhLevelOption extends foundry.abstract.DataModel {
|
||||
export class DhLevelOption extends foundry.abstract.DataModel {
|
||||
static defineSchema() {
|
||||
const fields = foundry.data.fields;
|
||||
|
||||
return {
|
||||
label: new fields.StringField({ required: true }),
|
||||
checkboxSelections: 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 }),
|
||||
value: new fields.NumberField({ integer: true }),
|
||||
amount: new fields.NumberField({ integer: true })
|
||||
label: new fields.StringField({
|
||||
required: true,
|
||||
label: 'DAGGERHEART.GENERAL.label'
|
||||
}),
|
||||
checkboxSelections: new fields.NumberField({
|
||||
required: true,
|
||||
integer: true,
|
||||
initial: 1,
|
||||
label: 'DAGGERHEART.CONFIG.LevelupData.checkboxSelections'
|
||||
}),
|
||||
minCost: new fields.NumberField({
|
||||
required: true,
|
||||
integer: true,
|
||||
initial: 1,
|
||||
label: 'DAGGERHEART.CONFIG.LevelupData.minCost'
|
||||
}),
|
||||
type: new fields.StringField({
|
||||
required: true,
|
||||
choices: LevelOptionType,
|
||||
label: 'DAGGERHEART.GENERAL.type'
|
||||
}),
|
||||
value: new fields.NumberField({
|
||||
integer: true,
|
||||
label: 'DAGGERHEART.GENERAL.value'
|
||||
}),
|
||||
amount: new fields.NumberField({
|
||||
integer: true,
|
||||
label: 'DAGGERHEART.GENERAL.amount'
|
||||
})
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
@ -113,6 +136,13 @@ export const CompanionLevelOptionType = {
|
|||
}
|
||||
};
|
||||
|
||||
export const ClassLevelOptionTypes = {
|
||||
comboStrikes: {
|
||||
id: 'comboStrikes',
|
||||
label: 'Increase your Combo Die size',
|
||||
},
|
||||
};
|
||||
|
||||
export const LevelOptionType = {
|
||||
trait: {
|
||||
id: 'trait',
|
||||
|
|
@ -162,6 +192,7 @@ export const LevelOptionType = {
|
|||
id: 'multiclass',
|
||||
label: 'Multiclass'
|
||||
},
|
||||
...ClassLevelOptionTypes,
|
||||
...CompanionLevelOptionType
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue