Fix issue #64: More modifications to the character sheet
Some checks failed
Test / test (push) Failing after 2s
Some checks failed
Test / test (push) Failing after 2s
This commit is contained in:
@@ -22,6 +22,17 @@ const ActorSchema = new Schema({
|
||||
},
|
||||
armorClass: { type: Number, min: 0, default: 10 },
|
||||
speed: { type: Number, min: 0, default: 30 },
|
||||
// The two pools the sheet draws as bars under the portrait (Syndria98/dragonroll#64): the bar
|
||||
// fills `current` of `max`, so both travel together. `current` is kept below `max` by whoever
|
||||
// writes them (routes/actor.js), the same way the sheet clamps the bar.
|
||||
hitPoints: {
|
||||
current: { type: Number, min: 0, default: 10 },
|
||||
max: { type: Number, min: 0, default: 10 }
|
||||
},
|
||||
hitDice: {
|
||||
current: { type: Number, min: 0, default: 1 },
|
||||
max: { type: Number, min: 0, default: 1 }
|
||||
},
|
||||
proficiencies: { type: String, default: '' },
|
||||
inventory: [{
|
||||
name: { type: String, trim: true, default: '' },
|
||||
|
||||
Reference in New Issue
Block a user