Skip to content

Commit

Permalink
feat: add proficiency_bonus field to Monsters (#370)
Browse files Browse the repository at this point in the history
resolves 5e-database#550
  • Loading branch information
fergcb authored Oct 18, 2023
1 parent 00fe371 commit 8334110
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/graphql/typeDefs.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,7 @@ type Monster {
desc: String
actions: [MonsterAction!]
challenge_rating: Float!
proficiency_bonus: Int!
charisma: Int!
condition_immunities: [Condition!]!
constitution: Int!
Expand Down
1 change: 1 addition & 0 deletions src/swagger/paths/monsters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ monster-index:
- type: natural
value: 17
challenge_rating: 10
proficiency_bonus: 4
charisma: 18
condition_immunities: []
constitution: 15
Expand Down
5 changes: 5 additions & 0 deletions src/swagger/schemas/monsters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ monster-model:
type: number
minimum: 0
maximum: 21
proficiency_bonus:
description: "A monster's proficiency bonus is the number added to ability checks, saving throws and attack rolls in which the monster is proficient, and is linked to the monster's challenge rating. This bonus has already been included in the monster's stats where applicable."
type: number
minimum: 2
maximum: 9
condition_immunities:
description: 'A list of conditions that a monster is immune to.'
type: array
Expand Down

0 comments on commit 8334110

Please sign in to comment.