Skip to content

Commit

Permalink
Merge pull request #870 from ben/pronouns-callsign
Browse files Browse the repository at this point in the history
Add pronouns and callsign to the data model
  • Loading branch information
ben authored Sep 13, 2023
2 parents 4d1e66c + a7ba3fe commit d323c6a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Next Release

- Fixed a bug where pronouns and callsign wouldn't save ([#870](https://github.com/ben/foundry-ironsworn/pull/870))

## 1.22.0

- Drop support for Foundry v10, we only support v11 and up now.
Expand Down
4 changes: 4 additions & 0 deletions src/module/actor/subtypes/character.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ export class CharacterModel extends foundry.abstract.TypeDataModel<
return {
biography: new fields.HTMLField(),
notes: new fields.HTMLField(),
pronouns: new fields.StringField(),
callsign: new fields.StringField(),

edge: new StatField({ label: 'IRONSWORN.Edge' }),
heart: new StatField({ label: 'IRONSWORN.Heart' }),
Expand Down Expand Up @@ -137,6 +139,8 @@ export interface CharacterModel extends CharacterDataSourceData {}
export interface CharacterDataSourceData {
biography: string
notes: string
pronouns: string
callsign: string

edge: number
heart: number
Expand Down

0 comments on commit d323c6a

Please sign in to comment.