From 83341107406ec1b815f42f8fb7105921c25bc6ce Mon Sep 17 00:00:00 2001 From: Fergus Bentley Date: Wed, 18 Oct 2023 01:52:40 +0100 Subject: [PATCH] feat: add proficiency_bonus field to Monsters (#370) resolves 5e-database#550 --- src/graphql/typeDefs.graphql | 1 + src/swagger/paths/monsters.yml | 1 + src/swagger/schemas/monsters.yml | 5 +++++ 3 files changed, 7 insertions(+) diff --git a/src/graphql/typeDefs.graphql b/src/graphql/typeDefs.graphql index 30481b7a..4293c5b3 100644 --- a/src/graphql/typeDefs.graphql +++ b/src/graphql/typeDefs.graphql @@ -679,6 +679,7 @@ type Monster { desc: String actions: [MonsterAction!] challenge_rating: Float! + proficiency_bonus: Int! charisma: Int! condition_immunities: [Condition!]! constitution: Int! diff --git a/src/swagger/paths/monsters.yml b/src/swagger/paths/monsters.yml index 405fb957..2c4a26fb 100644 --- a/src/swagger/paths/monsters.yml +++ b/src/swagger/paths/monsters.yml @@ -102,6 +102,7 @@ monster-index: - type: natural value: 17 challenge_rating: 10 + proficiency_bonus: 4 charisma: 18 condition_immunities: [] constitution: 15 diff --git a/src/swagger/schemas/monsters.yml b/src/swagger/schemas/monsters.yml index 7cb1d182..d13363dc 100644 --- a/src/swagger/schemas/monsters.yml +++ b/src/swagger/schemas/monsters.yml @@ -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