Implements inventory system, wip
This commit is contained in:
@@ -136,6 +136,21 @@ export default class PrismRPGCharacter extends foundry.abstract.TypeDataModel {
|
||||
}, {}),
|
||||
)
|
||||
|
||||
// Sub-attribute choices for movement rating and burden selectors
|
||||
const subAttributeChoices = () =>
|
||||
Object.values(SYSTEM.SUB_ATTRIBUTES).reduce((obj, s) => { obj[s.id] = s.label; return obj }, {})
|
||||
|
||||
schema.movementRating = new fields.SchemaField({
|
||||
subAttribute: new fields.StringField({ required: true, initial: "stamina", choices: subAttributeChoices }),
|
||||
other: new fields.NumberField({ ...requiredInteger, initial: 0 }),
|
||||
reduction: new fields.NumberField({ ...requiredInteger, initial: 0 })
|
||||
})
|
||||
|
||||
schema.burden = new fields.SchemaField({
|
||||
subAttribute: new fields.StringField({ required: true, initial: "vigor", choices: subAttributeChoices }),
|
||||
other: new fields.NumberField({ ...requiredInteger, initial: 0 })
|
||||
})
|
||||
|
||||
return schema
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user