Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pronouns and callsign to the data model #870

Merged
merged 4 commits into from
Sep 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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