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

feat: add proficiency_bonus field to Monsters #370

Merged
merged 1 commit into from
Oct 18, 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
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
Loading