mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-18 16:09:03 +01:00
Added so characters start with 2 hope
This commit is contained in:
parent
0bcff99ef7
commit
63ba2e86b5
4 changed files with 8 additions and 7 deletions
|
|
@ -53,8 +53,8 @@ export default class DhpAdversary extends BaseDataActor {
|
||||||
})
|
})
|
||||||
}),
|
}),
|
||||||
resources: new fields.SchemaField({
|
resources: new fields.SchemaField({
|
||||||
hitPoints: resourceField(0, 'DAGGERHEART.GENERAL.HitPoints.plural', true),
|
hitPoints: resourceField(0, 0, 'DAGGERHEART.GENERAL.HitPoints.plural', true),
|
||||||
stress: resourceField(0, 'DAGGERHEART.GENERAL.stress', true)
|
stress: resourceField(0, 0, 'DAGGERHEART.GENERAL.stress', true)
|
||||||
}),
|
}),
|
||||||
attack: new ActionField({
|
attack: new ActionField({
|
||||||
initial: {
|
initial: {
|
||||||
|
|
|
||||||
|
|
@ -25,13 +25,14 @@ export default class DhCharacter extends BaseDataActor {
|
||||||
...super.defineSchema(),
|
...super.defineSchema(),
|
||||||
resources: new fields.SchemaField({
|
resources: new fields.SchemaField({
|
||||||
hitPoints: resourceField(
|
hitPoints: resourceField(
|
||||||
|
0,
|
||||||
0,
|
0,
|
||||||
'DAGGERHEART.GENERAL.HitPoints.plural',
|
'DAGGERHEART.GENERAL.HitPoints.plural',
|
||||||
true,
|
true,
|
||||||
'DAGGERHEART.ACTORS.Character.maxHPBonus'
|
'DAGGERHEART.ACTORS.Character.maxHPBonus'
|
||||||
),
|
),
|
||||||
stress: resourceField(6, 'DAGGERHEART.GENERAL.stress', true),
|
stress: resourceField(6, 0, 'DAGGERHEART.GENERAL.stress', true),
|
||||||
hope: resourceField(6, 'DAGGERHEART.GENERAL.hope')
|
hope: resourceField(6, 2, 'DAGGERHEART.GENERAL.hope')
|
||||||
}),
|
}),
|
||||||
traits: new fields.SchemaField({
|
traits: new fields.SchemaField({
|
||||||
agility: attributeField('DAGGERHEART.CONFIG.Traits.agility.name'),
|
agility: attributeField('DAGGERHEART.CONFIG.Traits.agility.name'),
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ export default class DhCompanion extends BaseDataActor {
|
||||||
...super.defineSchema(),
|
...super.defineSchema(),
|
||||||
partner: new ForeignDocumentUUIDField({ type: 'Actor' }),
|
partner: new ForeignDocumentUUIDField({ type: 'Actor' }),
|
||||||
resources: new fields.SchemaField({
|
resources: new fields.SchemaField({
|
||||||
stress: resourceField(3, 'DAGGERHEART.GENERAL.stress', true),
|
stress: resourceField(3, 0, 'DAGGERHEART.GENERAL.stress', true),
|
||||||
hope: new fields.NumberField({ initial: 0, integer: true, label: 'DAGGERHEART.GENERAL.hope' })
|
hope: new fields.NumberField({ initial: 0, integer: true, label: 'DAGGERHEART.GENERAL.hope' })
|
||||||
}),
|
}),
|
||||||
evasion: new fields.NumberField({
|
evasion: new fields.NumberField({
|
||||||
|
|
|
||||||
|
|
@ -6,9 +6,9 @@ const attributeField = label =>
|
||||||
tierMarked: new fields.BooleanField({ initial: false })
|
tierMarked: new fields.BooleanField({ initial: false })
|
||||||
});
|
});
|
||||||
|
|
||||||
const resourceField = (max = 0, label, reverse = false, maxLabel) =>
|
const resourceField = (max = 0, initial = 0, label, reverse = false, maxLabel) =>
|
||||||
new fields.SchemaField({
|
new fields.SchemaField({
|
||||||
value: new fields.NumberField({ initial: 0, min: 0, integer: true, label }),
|
value: new fields.NumberField({ initial: initial, min: 0, integer: true, label }),
|
||||||
max: new fields.NumberField({
|
max: new fields.NumberField({
|
||||||
initial: max,
|
initial: max,
|
||||||
integer: true,
|
integer: true,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue