briyah 1.3.5 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (239) hide show
  1. package/README.md +849 -684
  2. package/data/common/artifacts/dnd5e/campaign_designer-setting.md +112 -0
  3. package/data/common/artifacts/dnd5e/character_creator-basics.md +40 -0
  4. package/data/common/artifacts/dnd5e/class-barbarian.md +64 -0
  5. package/data/common/artifacts/dnd5e/class-bard.md +63 -0
  6. package/data/common/artifacts/dnd5e/class-cleric.md +60 -0
  7. package/data/common/artifacts/dnd5e/class-druid.md +56 -0
  8. package/data/common/artifacts/dnd5e/class-fighter.md +53 -0
  9. package/data/common/artifacts/dnd5e/class-monk.md +77 -0
  10. package/data/common/artifacts/dnd5e/class-paladin.md +66 -0
  11. package/data/common/artifacts/dnd5e/class-ranger.md +73 -0
  12. package/data/common/artifacts/dnd5e/class-rogue.md +62 -0
  13. package/data/common/artifacts/dnd5e/class-sorcerer.md +67 -0
  14. package/data/common/artifacts/dnd5e/class-warlock.md +83 -0
  15. package/data/common/artifacts/dnd5e/class-wizard.md +51 -0
  16. package/data/common/artifacts/dnd5e/dungeon_master-procedure.md +348 -0
  17. package/data/common/artifacts/dnd5e/manifest.json +95 -0
  18. package/data/common/config/markup +1 -1
  19. package/data/common/config/model_prices.json +1250 -237
  20. package/data/common/prompts/campaign_designer/defaults_config.json +16 -0
  21. package/data/common/prompts/campaign_designer/perceive.json +29 -0
  22. package/data/common/prompts/campaign_designer/perceive.prompt +345 -0
  23. package/data/common/prompts/campaign_designer/system_instruction.prompt +0 -0
  24. package/data/common/prompts/character_creator/defaults_config.json +31 -0
  25. package/data/common/prompts/character_creator/perceive.json +29 -0
  26. package/data/common/prompts/character_creator/perceive.prompt +621 -0
  27. package/data/common/prompts/character_creator/system_instruction.prompt +0 -0
  28. package/data/common/prompts/dnd_player/defaults_config.json +5 -0
  29. package/data/common/prompts/dnd_player/perceive.json +29 -0
  30. package/data/common/prompts/dnd_player/perceive.prompt +312 -0
  31. package/data/common/prompts/dnd_player/system_instruction.prompt +0 -0
  32. package/data/common/prompts/dnd_room_moderator/defaults_config.json +9 -0
  33. package/data/common/prompts/dnd_room_moderator/moderate.json +34 -0
  34. package/data/common/prompts/dnd_room_moderator/moderate.prompt +291 -0
  35. package/data/common/prompts/dnd_room_moderator/system_instruction.prompt +0 -0
  36. package/data/common/prompts/dungeon_master/compact_agent.prompt +24 -0
  37. package/data/common/prompts/dungeon_master/defaults_config.json +29 -0
  38. package/data/common/prompts/dungeon_master/perceive.json +33 -0
  39. package/data/common/prompts/dungeon_master/perceive.prompt +757 -0
  40. package/data/common/prompts/dungeon_master/system_instruction.prompt +0 -0
  41. package/data/common/prompts/room_moderator/moderate.json +34 -29
  42. package/data/common/prompts/room_moderator/moderate.prompt +230 -210
  43. package/data/common/prompts/story_moderator/moderate.prompt +5 -2
  44. package/data/common/prompts/story_moderator/moderate_to_alice.mock +6 -6
  45. package/data/common/prompts/story_moderator/moderate_to_bob.mock +6 -6
  46. package/dist-sdk/server/src/ai/LLM/anthropic.service.d.ts +2 -0
  47. package/dist-sdk/server/src/ai/LLM/anthropic.service.js +34 -22
  48. package/dist-sdk/server/src/ai/LLM/base-ai.service.d.ts +1 -0
  49. package/dist-sdk/server/src/ai/LLM/base-ai.service.js +4 -1
  50. package/dist-sdk/server/src/ai/agent-config.d.ts +1 -0
  51. package/dist-sdk/server/src/ai/agent-store.service.js +6 -4
  52. package/dist-sdk/server/src/ai/agent.d.ts +7 -0
  53. package/dist-sdk/server/src/ai/agent.js +33 -2
  54. package/dist-sdk/server/src/ai/artifact.service.d.ts +2 -0
  55. package/dist-sdk/server/src/ai/artifact.service.js +29 -1
  56. package/dist-sdk/server/src/ai/pack-artifacts.d.ts +7 -0
  57. package/dist-sdk/server/src/ai/pack-artifacts.js +155 -0
  58. package/dist-sdk/server/src/app/stripe.controller.js +5 -0
  59. package/dist-sdk/server/src/app.controller.d.ts +18 -18
  60. package/dist-sdk/server/src/app.controller.js +249 -25
  61. package/dist-sdk/server/src/app.service.d.ts +30 -17
  62. package/dist-sdk/server/src/app.service.js +303 -35
  63. package/dist-sdk/server/src/auth/auth.controller.js +3 -2
  64. package/dist-sdk/server/src/auth/owner-only.decorator.d.ts +1 -0
  65. package/dist-sdk/server/src/auth/owner-only.decorator.js +8 -0
  66. package/dist-sdk/server/src/auth/twilio.service.d.ts +5 -1
  67. package/dist-sdk/server/src/auth/twilio.service.js +5 -3
  68. package/dist-sdk/server/src/config/user-paths.service.d.ts +2 -0
  69. package/dist-sdk/server/src/config/user-paths.service.js +8 -0
  70. package/dist-sdk/server/src/room/artifact-store.service.js +10 -2
  71. package/dist-sdk/server/src/room/artifact.d.ts +1 -0
  72. package/dist-sdk/server/src/room/message.d.ts +2 -1
  73. package/dist-sdk/server/src/room/message.js +5 -4
  74. package/dist-sdk/server/src/room/room-config.d.ts +3 -0
  75. package/dist-sdk/server/src/room/room-store.service.d.ts +4 -2
  76. package/dist-sdk/server/src/room/room-store.service.js +46 -12
  77. package/dist-sdk/server/src/room/room.d.ts +29 -3
  78. package/dist-sdk/server/src/room/room.js +390 -122
  79. package/dist-sdk/server/src/sdk/briyah.js +12 -0
  80. package/dist-sdk/server/src/sdk/index.d.ts +4 -1
  81. package/dist-sdk/server/src/sdk/index.js +9 -1
  82. package/dist-sdk/server/src/story/story.service.js +10 -12
  83. package/dist-sdk/server/src/tools/native-tool.types.d.ts +31 -0
  84. package/dist-sdk/server/src/tools/packs/dnd5e/data/backgrounds.d.ts +22 -0
  85. package/dist-sdk/server/src/tools/packs/dnd5e/data/backgrounds.js +59 -0
  86. package/dist-sdk/server/src/tools/packs/dnd5e/data/feats.d.ts +24 -0
  87. package/dist-sdk/server/src/tools/packs/dnd5e/data/feats.js +11 -0
  88. package/dist-sdk/server/src/tools/packs/dnd5e/data/gear.d.ts +5 -0
  89. package/dist-sdk/server/src/tools/packs/dnd5e/data/gear.generated.d.ts +1 -0
  90. package/dist-sdk/server/src/tools/packs/dnd5e/data/gear.generated.js +154 -0
  91. package/dist-sdk/server/src/tools/packs/dnd5e/data/gear.js +9 -0
  92. package/dist-sdk/server/src/tools/packs/dnd5e/data/magic-items.d.ts +20 -0
  93. package/dist-sdk/server/src/tools/packs/dnd5e/data/magic-items.generated.d.ts +2 -0
  94. package/dist-sdk/server/src/tools/packs/dnd5e/data/magic-items.generated.js +1824 -0
  95. package/dist-sdk/server/src/tools/packs/dnd5e/data/magic-items.js +6 -0
  96. package/dist-sdk/server/src/tools/packs/dnd5e/data/monsters.d.ts +44 -0
  97. package/dist-sdk/server/src/tools/packs/dnd5e/data/monsters.generated.d.ts +2 -0
  98. package/dist-sdk/server/src/tools/packs/dnd5e/data/monsters.generated.js +17293 -0
  99. package/dist-sdk/server/src/tools/packs/dnd5e/data/monsters.js +5 -0
  100. package/dist-sdk/server/src/tools/packs/dnd5e/data/races.d.ts +41 -0
  101. package/dist-sdk/server/src/tools/packs/dnd5e/data/races.js +250 -0
  102. package/dist-sdk/server/src/tools/packs/dnd5e/data/spells.d.ts +16 -0
  103. package/dist-sdk/server/src/tools/packs/dnd5e/data/spells.generated.d.ts +2 -0
  104. package/dist-sdk/server/src/tools/packs/dnd5e/data/spells.generated.js +3760 -0
  105. package/dist-sdk/server/src/tools/packs/dnd5e/data/spells.js +12 -0
  106. package/dist-sdk/server/src/tools/packs/dnd5e/data/srd.d.ts +63 -0
  107. package/dist-sdk/server/src/tools/packs/dnd5e/data/srd.js +449 -0
  108. package/dist-sdk/server/src/tools/packs/dnd5e/data/weapons.d.ts +23 -0
  109. package/dist-sdk/server/src/tools/packs/dnd5e/data/weapons.js +88 -0
  110. package/dist-sdk/server/src/tools/packs/dnd5e/engine/backgrounds.d.ts +20 -0
  111. package/dist-sdk/server/src/tools/packs/dnd5e/engine/backgrounds.js +109 -0
  112. package/dist-sdk/server/src/tools/packs/dnd5e/engine/bestiary.d.ts +30 -0
  113. package/dist-sdk/server/src/tools/packs/dnd5e/engine/bestiary.js +329 -0
  114. package/dist-sdk/server/src/tools/packs/dnd5e/engine/campaign-items.d.ts +9 -0
  115. package/dist-sdk/server/src/tools/packs/dnd5e/engine/campaign-items.js +100 -0
  116. package/dist-sdk/server/src/tools/packs/dnd5e/engine/character.d.ts +117 -0
  117. package/dist-sdk/server/src/tools/packs/dnd5e/engine/character.js +1057 -0
  118. package/dist-sdk/server/src/tools/packs/dnd5e/engine/coerce.d.ts +13 -0
  119. package/dist-sdk/server/src/tools/packs/dnd5e/engine/coerce.js +147 -0
  120. package/dist-sdk/server/src/tools/packs/dnd5e/engine/dice.d.ts +27 -0
  121. package/dist-sdk/server/src/tools/packs/dnd5e/engine/dice.js +263 -0
  122. package/dist-sdk/server/src/tools/packs/dnd5e/engine/encumbrance.d.ts +26 -0
  123. package/dist-sdk/server/src/tools/packs/dnd5e/engine/encumbrance.js +129 -0
  124. package/dist-sdk/server/src/tools/packs/dnd5e/engine/feats.d.ts +22 -0
  125. package/dist-sdk/server/src/tools/packs/dnd5e/engine/feats.js +127 -0
  126. package/dist-sdk/server/src/tools/packs/dnd5e/engine/items.d.ts +33 -0
  127. package/dist-sdk/server/src/tools/packs/dnd5e/engine/items.js +137 -0
  128. package/dist-sdk/server/src/tools/packs/dnd5e/engine/races.d.ts +26 -0
  129. package/dist-sdk/server/src/tools/packs/dnd5e/engine/races.js +182 -0
  130. package/dist-sdk/server/src/tools/packs/dnd5e/engine/rules.d.ts +48 -0
  131. package/dist-sdk/server/src/tools/packs/dnd5e/engine/rules.js +344 -0
  132. package/dist-sdk/server/src/tools/packs/dnd5e/engine/sheet.d.ts +98 -0
  133. package/dist-sdk/server/src/tools/packs/dnd5e/engine/sheet.js +456 -0
  134. package/dist-sdk/server/src/tools/packs/dnd5e/engine/spells.d.ts +27 -0
  135. package/dist-sdk/server/src/tools/packs/dnd5e/engine/spells.js +123 -0
  136. package/dist-sdk/server/src/tools/packs/dnd5e/engine/weapons.d.ts +23 -0
  137. package/dist-sdk/server/src/tools/packs/dnd5e/engine/weapons.js +201 -0
  138. package/dist-sdk/server/src/tools/packs/dnd5e/index.d.ts +3 -0
  139. package/dist-sdk/server/src/tools/packs/dnd5e/index.js +35 -0
  140. package/dist-sdk/server/src/tools/packs/dnd5e/tools/check.tool.d.ts +2 -0
  141. package/dist-sdk/server/src/tools/packs/dnd5e/tools/check.tool.js +323 -0
  142. package/dist-sdk/server/src/tools/packs/dnd5e/tools/dice.tools.d.ts +3 -0
  143. package/dist-sdk/server/src/tools/packs/dnd5e/tools/dice.tools.js +117 -0
  144. package/dist-sdk/server/src/tools/packs/dnd5e/tools/item.tool.d.ts +2 -0
  145. package/dist-sdk/server/src/tools/packs/dnd5e/tools/item.tool.js +122 -0
  146. package/dist-sdk/server/src/tools/packs/dnd5e/tools/monster.tool.d.ts +2 -0
  147. package/dist-sdk/server/src/tools/packs/dnd5e/tools/monster.tool.js +157 -0
  148. package/dist-sdk/server/src/tools/packs/dnd5e/tools/shared.d.ts +32 -0
  149. package/dist-sdk/server/src/tools/packs/dnd5e/tools/shared.js +203 -0
  150. package/dist-sdk/server/src/tools/packs/dnd5e/tools/sheet.tools.d.ts +4 -0
  151. package/dist-sdk/server/src/tools/packs/dnd5e/tools/sheet.tools.js +465 -0
  152. package/dist-sdk/server/src/tools/packs/dnd5e/tools/spell.tool.d.ts +2 -0
  153. package/dist-sdk/server/src/tools/packs/dnd5e/tools/spell.tool.js +116 -0
  154. package/dist-sdk/server/src/tools/packs/dnd5e/tools/state.tools.d.ts +4 -0
  155. package/dist-sdk/server/src/tools/packs/dnd5e/tools/state.tools.js +234 -0
  156. package/dist-sdk/server/src/tools/packs/dnd5e/tools/world.tools.d.ts +6 -0
  157. package/dist-sdk/server/src/tools/packs/dnd5e/tools/world.tools.js +616 -0
  158. package/dist-sdk/server/src/tools/packs/index.d.ts +7 -0
  159. package/dist-sdk/server/src/tools/packs/index.js +45 -0
  160. package/dist-sdk/server/src/tools/tool-execution.service.d.ts +2 -2
  161. package/dist-sdk/server/src/tools/tool-execution.service.js +7 -6
  162. package/dist-sdk/shared/types/app.types.d.ts +63 -0
  163. package/docs/assets/hierarchy.js +1 -1
  164. package/docs/assets/navigation.js +1 -1
  165. package/docs/assets/search.js +1 -1
  166. package/docs/classes/Agent.html +51 -15
  167. package/docs/classes/Briyah.html +14 -14
  168. package/docs/classes/BriyahConfigService.html +5 -5
  169. package/docs/classes/NativeToolRegistry.html +21 -0
  170. package/docs/classes/Room.html +79 -29
  171. package/docs/classes/RoomMessage.html +32 -15
  172. package/docs/enums/MessageAction.html +3 -3
  173. package/docs/functions/availableToolPacks.html +2 -0
  174. package/docs/functions/dnd5eTools.html +5 -0
  175. package/docs/functions/enabledToolPacks.html +2 -0
  176. package/docs/functions/registerToolPacks.html +6 -0
  177. package/docs/hierarchy.html +1 -1
  178. package/docs/index.html +69 -3
  179. package/docs/interfaces/AgentInfo.html +17 -2
  180. package/docs/interfaces/AgentMessagesResponse.html +2 -2
  181. package/docs/interfaces/AppService.html +230 -181
  182. package/docs/interfaces/Artifact.html +15 -3
  183. package/docs/interfaces/ArtifactMetadata.html +5 -2
  184. package/docs/interfaces/ArtifactWriteOptions.html +21 -0
  185. package/docs/interfaces/AttachDocumentResponse.html +2 -2
  186. package/docs/interfaces/BriyahConfigOptions.html +9 -9
  187. package/docs/interfaces/ChapterInfo.html +2 -2
  188. package/docs/interfaces/Character.html +2 -2
  189. package/docs/interfaces/CreateAgentResponse.html +2 -2
  190. package/docs/interfaces/CreateRoomResponse.html +2 -2
  191. package/docs/interfaces/CreateStoryResponse.html +2 -2
  192. package/docs/interfaces/FileList.html +2 -2
  193. package/docs/interfaces/FileMetadata.html +3 -3
  194. package/docs/interfaces/IConfigService.html +3 -3
  195. package/docs/interfaces/LoggingOptions.html +6 -6
  196. package/docs/interfaces/Message.html +2 -2
  197. package/docs/interfaces/ModelInfo.html +2 -2
  198. package/docs/interfaces/NativeToolDefinition.html +11 -7
  199. package/docs/interfaces/PreparedPromptResponse.html +2 -2
  200. package/docs/interfaces/ProcessTextResponse.html +2 -2
  201. package/docs/interfaces/PromptFile.html +2 -2
  202. package/docs/interfaces/PromptFileContent.html +2 -2
  203. package/docs/interfaces/PromptFilesResponse.html +2 -2
  204. package/docs/interfaces/PromptFolder.html +2 -2
  205. package/docs/interfaces/PromptFoldersResponse.html +2 -2
  206. package/docs/interfaces/RoomDetails.html +15 -2
  207. package/docs/interfaces/RoomInfo.html +3 -2
  208. package/docs/interfaces/RoomMessageUpdate.html +2 -2
  209. package/docs/interfaces/RoomMessagesResponse.html +2 -2
  210. package/docs/interfaces/SendMessageResult.html +2 -2
  211. package/docs/interfaces/StoryErrorEvent.html +3 -3
  212. package/docs/interfaces/StoryIdea.html +2 -2
  213. package/docs/interfaces/StoryInfo.html +3 -3
  214. package/docs/interfaces/StoryIntroduceCharacterEvent.html +3 -3
  215. package/docs/interfaces/StoryProgressChapterEvent.html +3 -3
  216. package/docs/interfaces/StoryState.html +5 -5
  217. package/docs/interfaces/StoryStateEvent.html +3 -3
  218. package/docs/interfaces/ToolArtifact.html +8 -0
  219. package/docs/interfaces/ToolCaller.html +8 -0
  220. package/docs/interfaces/ToolDefinition.html +2 -2
  221. package/docs/interfaces/ToolHelpers.html +7 -3
  222. package/docs/interfaces/ToolParameter.html +2 -2
  223. package/docs/interfaces/ToolRoomAccess.html +51 -0
  224. package/docs/interfaces/ToolSummary.html +3 -2
  225. package/docs/interfaces/ToolsResponse.html +2 -2
  226. package/docs/interfaces/Transaction.html +2 -2
  227. package/docs/interfaces/TransactionHistoryResponse.html +2 -2
  228. package/docs/modules.html +1 -1
  229. package/docs/types/PromptScope.html +1 -1
  230. package/docs/types/ToolContext.html +2 -2
  231. package/docs/types/ToolRunResult.html +1 -1
  232. package/package.json +8 -5
  233. package/src/tools/packs/dnd5e/README.md +614 -0
  234. package/dist-sdk/server/src/ai/LLM/base-ai.service.spec.d.ts +0 -1
  235. package/dist-sdk/server/src/ai/LLM/base-ai.service.spec.js +0 -89
  236. package/dist-sdk/server/src/ai/LLM/comfyui-client.spec.d.ts +0 -1
  237. package/dist-sdk/server/src/ai/LLM/comfyui-client.spec.js +0 -143
  238. package/dist-sdk/server/src/ai/LLM/comfyui-workflow.spec.d.ts +0 -1
  239. package/dist-sdk/server/src/ai/LLM/comfyui-workflow.spec.js +0 -207
@@ -0,0 +1,73 @@
1
+ # Ranger — features by level (SRD 5.1)
2
+
3
+ Attach to the **character creator** while building a ranger, and to the player agent
4
+ who plays one.
5
+
6
+ *This work includes material from the System Reference Document 5.1 by Wizards of the Coast LLC,
7
+ available under the Creative Commons Attribution 4.0 International License.*
8
+
9
+ Hit die, saving throws, skill list, spellcasting ability, subclass level, Ability Score Improvement
10
+ levels and spell **slots** are computed by the pack — call `rules_lookup`, `create_sheet` or
11
+ `level_up` for those rather than reading them here. This document holds the proficiencies, the
12
+ starting equipment, the features by level, and the resource counts no tool models.
13
+
14
+ ## Ranger
15
+
16
+ **Armour** light, medium, shields · **Weapons** simple, martial · **Tools** none
17
+ **Equipment** scale mail *or* leather armour; two shortswords *or* two simple melee weapons;
18
+ dungeoneer's *or* explorer's pack; a longbow and 20 arrows
19
+ **ASI** 4, 8, 12, 16, 19 · **Spellcasting from level 2**, Wisdom, spells **known** from the ranger
20
+ list, one swappable each level
21
+
22
+ | Level | Features | Spells known |
23
+ |---|---|---|
24
+ | 1 | Favored Enemy, Natural Explorer | — |
25
+ | 2 | Fighting Style, Spellcasting | 2 |
26
+ | 3 | Ranger Archetype, Primeval Awareness | 3 |
27
+ | 5 | Extra Attack | 4 |
28
+ | 6 | Favored Enemy and Natural Explorer improvements | 4 |
29
+ | 7 | Archetype feature | 5 |
30
+ | 8 | Land's Stride (ASI) | 5 |
31
+ | 9 | — | 6 |
32
+ | 10 | Natural Explorer improvement, Hide in Plain Sight | 6 |
33
+ | 11 | Archetype feature | 7 |
34
+ | 13 | — | 8 |
35
+ | 14 | Favored Enemy improvement, Vanish | 8 |
36
+ | 15 | Archetype feature | 9 |
37
+ | 17 | — | 10 |
38
+ | 18 | Feral Senses | 10 |
39
+ | 20 | Foe Slayer | 11 |
40
+
41
+ (Spells known at the omitted ASI levels 4, 12, 16 and 19: 3, 7, 9 and 11.)
42
+
43
+ - **Favored Enemy** One creature type, or two humanoid races: advantage on Wisdom (Survival) checks
44
+ to track them and Intelligence checks to recall lore about them, plus one language they speak.
45
+ Another at 6 and 14.
46
+ - **Natural Explorer** One favoured terrain: double proficiency on Intelligence and Wisdom checks
47
+ there using a skill you are proficient in. Travelling an hour or more in it, difficult terrain
48
+ does not slow the group, the group cannot get lost non-magically, you stay alert while doing
49
+ something else, you can move stealthily alone at a normal pace, you forage double food, and
50
+ tracking tells you numbers, sizes and how long ago. Another terrain at 6 and 10.
51
+ - **Fighting Style** Archery, Defense, Dueling or Two-Weapon Fighting.
52
+ - **Primeval Awareness** Action and a spell slot: for 1 minute per slot level, sense whether
53
+ aberrations, celestials, dragons, elementals, fey, fiends or undead are within 1 mile, or 6 miles
54
+ in favoured terrain. No location, no number.
55
+ - **Land's Stride** As the druid's.
56
+ - **Hide in Plain Sight** One minute of camouflage from natural materials, then +10 to Dexterity
57
+ (Stealth) while pressed motionless against a surface at least your size. Lost on moving or acting.
58
+ - **Vanish** Hide as a bonus action, and no non-magical tracking unless you choose to leave a trail.
59
+ - **Feral Senses** No disadvantage attacking a creature you cannot see, and you know the location of
60
+ invisible creatures within 30 feet that are not hidden from you.
61
+ - **Foe Slayer** Once a turn, add your Wisdom modifier to an attack or damage roll against a
62
+ favoured enemy, before or after rolling.
63
+
64
+ **Hunter** (3) **Hunter's Prey**, choose one: *Colossus Slayer* extra 1d8 once a turn against a
65
+ creature below its maximum; *Giant Killer* reaction to attack a Large or larger creature within 5
66
+ feet that attacks you; *Horde Breaker* once a turn, a second attack against a different creature
67
+ within 5 feet of the first. (7) **Defensive Tactics**: *Escape the Horde* opportunity attacks
68
+ against you have disadvantage; *Multiattack Defense* +4 AC against a creature's later attacks in a
69
+ turn after its first hits; *Steel Will* advantage on saves against fright. (11) **Multiattack**:
70
+ *Volley* a ranged attack against any number of creatures within 10 feet of a point in range;
71
+ *Whirlwind Attack* a melee attack against any number of creatures within 5 feet. (15) **Superior
72
+ Hunter's Defense**: *Evasion*, *Stand Against the Tide* (reaction to redirect a missed melee attack
73
+ at another creature), or *Uncanny Dodge*.
@@ -0,0 +1,62 @@
1
+ # Rogue — features by level (SRD 5.1)
2
+
3
+ Attach to the **character creator** while building a rogue, and to the player agent
4
+ who plays one.
5
+
6
+ *This work includes material from the System Reference Document 5.1 by Wizards of the Coast LLC,
7
+ available under the Creative Commons Attribution 4.0 International License.*
8
+
9
+ Hit die, saving throws, skill list, spellcasting ability, subclass level, Ability Score Improvement
10
+ levels and spell **slots** are computed by the pack — call `rules_lookup`, `create_sheet` or
11
+ `level_up` for those rather than reading them here. This document holds the proficiencies, the
12
+ starting equipment, the features by level, and the resource counts no tool models.
13
+
14
+ ## Rogue
15
+
16
+ **Armour** light · **Weapons** simple, hand crossbows, longswords, rapiers, shortswords ·
17
+ **Tools** thieves' tools
18
+ **Equipment** rapier *or* shortsword; shortbow and 20 arrows *or* shortsword; burglar's,
19
+ dungeoneer's *or* explorer's pack; leather armour, two daggers, thieves' tools
20
+ **ASI** 4, 8, 10, 12, 16, 19 — six, not five
21
+
22
+ | Level | Features | Sneak Attack |
23
+ |---|---|---|
24
+ | 1 | Expertise, Sneak Attack, Thieves' Cant | 1d6 |
25
+ | 2 | Cunning Action | 1d6 |
26
+ | 3 | Roguish Archetype | 2d6 |
27
+ | 5 | Uncanny Dodge | 3d6 |
28
+ | 6 | Expertise | 3d6 |
29
+ | 7 | Evasion | 4d6 |
30
+ | 9 | Archetype feature | 5d6 |
31
+ | 11 | Reliable Talent | 6d6 |
32
+ | 13 | Archetype feature | 7d6 |
33
+ | 14 | Blindsense | 7d6 |
34
+ | 15 | Slippery Mind | 8d6 |
35
+ | 17 | Archetype feature | 9d6 |
36
+ | 18 | Elusive | 9d6 |
37
+ | 20 | Stroke of Luck | 10d6 |
38
+
39
+ (Sneak Attack rises to 2d6 at 4, 4d6 at 8, 5d6 at 10, 6d6 at 12, 8d6 at 16 and 10d6 at 19.)
40
+
41
+ - **Expertise** Double proficiency on two chosen skill proficiencies, or one skill and thieves'
42
+ tools. Two more at 6.
43
+ - **Sneak Attack** Once per turn, extra damage with a finesse or ranged weapon when you have
44
+ advantage, or when another enemy of the target is within 5 feet of it, that enemy is not
45
+ incapacitated, and you do not have disadvantage.
46
+ - **Thieves' Cant** A coded dialect, four times slower than plain speech, plus a set of secret signs.
47
+ - **Cunning Action** A bonus action each turn, spendable only on Dash, Disengage or Hide.
48
+ - **Uncanny Dodge** Reaction to halve the damage of an attack you can see hitting you.
49
+ - **Evasion** As the monk's.
50
+ - **Reliable Talent** Treat a d20 of 9 or lower as a 10 on any ability check that adds proficiency.
51
+ - **Blindsense** If you can hear, you know the location of hidden and invisible creatures within 10 feet.
52
+ - **Slippery Mind** Proficiency in Wisdom saving throws.
53
+ - **Elusive** No attack roll has advantage against you unless you are incapacitated.
54
+ - **Stroke of Luck** Turn a miss into a hit, or treat a failed ability check's d20 as a 20. Once per
55
+ short or long rest.
56
+
57
+ **Thief** (3): **Fast Hands** — use the Cunning Action bonus action for Sleight of Hand, thieves'
58
+ tools, or Use an Object; **Second-Story Work** — climbing costs no extra movement, and running jumps
59
+ gain your Dexterity modifier in feet. (9) **Supreme Sneak** — advantage on Stealth if you move no
60
+ more than half your speed that turn. (13) **Use Magic Device** — ignore all class, race and level
61
+ requirements on magic items. (17) **Thief's Reflexes** — two turns in the first round of combat, the
62
+ second at your initiative minus 10, unless surprised.
@@ -0,0 +1,67 @@
1
+ # Sorcerer — features by level (SRD 5.1)
2
+
3
+ Attach to the **character creator** while building a sorcerer, and to the player agent
4
+ who plays one.
5
+
6
+ *This work includes material from the System Reference Document 5.1 by Wizards of the Coast LLC,
7
+ available under the Creative Commons Attribution 4.0 International License.*
8
+
9
+ Hit die, saving throws, skill list, spellcasting ability, subclass level, Ability Score Improvement
10
+ levels and spell **slots** are computed by the pack — call `rules_lookup`, `create_sheet` or
11
+ `level_up` for those rather than reading them here. This document holds the proficiencies, the
12
+ starting equipment, the features by level, and the resource counts no tool models.
13
+
14
+ ## Sorcerer
15
+
16
+ **Armour** none · **Weapons** dagger, dart, sling, quarterstaff, light crossbow · **Tools** none
17
+ **Equipment** light crossbow and 20 bolts *or* any simple weapon; component pouch *or* arcane
18
+ focus; dungeoneer's *or* explorer's pack; two daggers
19
+ **ASI** 4, 8, 12, 16, 19 · **Spellcasting** Charisma, arcane focus, spells **known** from the
20
+ sorcerer list, one swappable each level
21
+
22
+ | Level | Features | Cantrips | Spells known | Sorcery points |
23
+ |---|---|---|---|---|
24
+ | 1 | Spellcasting, Sorcerous Origin | 4 | 2 | — |
25
+ | 2 | Font of Magic | 4 | 3 | 2 |
26
+ | 3 | Metamagic | 4 | 4 | 3 |
27
+ | 5 | — | 5 | 6 | 5 |
28
+ | 6 | Origin feature | 5 | 7 | 6 |
29
+ | 7 | — | 5 | 8 | 7 |
30
+ | 9 | — | 5 | 10 | 9 |
31
+ | 10 | Metamagic | 6 | 11 | 10 |
32
+ | 11 | — | 6 | 12 | 11 |
33
+ | 13 | — | 6 | 13 | 13 |
34
+ | 14 | Origin feature | 6 | 13 | 14 |
35
+ | 15 | — | 6 | 14 | 15 |
36
+ | 17 | Metamagic | 6 | 15 | 17 |
37
+ | 18 | Origin feature | 6 | 15 | 18 |
38
+ | 20 | Sorcerous Restoration | 6 | 15 | 20 |
39
+
40
+ (Sorcery points equal your level from 2 onward. Cantrips: 4 at 1–3, 5 at 4–9, 6 from 10. Spells
41
+ known at the omitted ASI levels 4, 8, 12, 16 and 19: 5, 9, 12, 14 and 15.)
42
+
43
+ - **Font of Magic** Sorcery points, all regained on a long rest. **Creating spell slots** as a bonus
44
+ action costs 2 points for 1st, 3 for 2nd, 5 for 3rd, 6 for 4th, 7 for 5th, and nothing higher;
45
+ slots made this way vanish on a long rest. **Converting a slot** to points, as a bonus action,
46
+ gives points equal to the slot level.
47
+ - **Metamagic** Two options at 3, one more at 10 and 17, one per casting unless stated.
48
+ **Careful Spell** 1 point: up to your Charisma modifier in creatures automatically succeed on the
49
+ save. **Distant Spell** 1 point: double the range, or make a touch spell 30 feet.
50
+ **Empowered Spell** 1 point: reroll up to your Charisma modifier in damage dice; stacks with
51
+ another option. **Extended Spell** 1 point: double a duration of 1 minute or more, up to 24 hours.
52
+ **Heightened Spell** 3 points: one target has disadvantage on its first save.
53
+ **Quickened Spell** 2 points: a 1-action casting time becomes a bonus action.
54
+ **Subtle Spell** 1 point: no verbal or somatic components.
55
+ **Twinned Spell** points equal to the spell level (1 for a cantrip): a second target, only for a
56
+ spell that cannot target more than one creature at that level.
57
+ - **Sorcerous Restoration** Regain 4 sorcery points on a short rest.
58
+
59
+ **Draconic Bloodline** (1): choose an ancestor — black or copper acid, blue or bronze lightning,
60
+ brass, gold or red fire, green poison, silver or white cold. You speak, read and write Draconic, and
61
+ double proficiency on Charisma checks with dragons. **Draconic Resilience** — +1 hit point per
62
+ sorcerer level, and AC 13 + Dexterity out of armour. (6) **Elemental Affinity** — add your Charisma
63
+ modifier to one damage roll of a spell of your ancestry's type, and 1 point grants an hour's
64
+ resistance to it. (14) **Dragon Wings** — bonus action for a flying speed equal to your speed, not
65
+ while wearing unaccommodating armour. (18) **Draconic Presence** — action, 5 points, concentration:
66
+ a 60-foot aura where hostile creatures starting a turn make a Wisdom save or are charmed (awe) or
67
+ frightened (fear) for 1 minute.
@@ -0,0 +1,83 @@
1
+ # Warlock — features by level (SRD 5.1)
2
+
3
+ Attach to the **character creator** while building a warlock, and to the player agent
4
+ who plays one.
5
+
6
+ *This work includes material from the System Reference Document 5.1 by Wizards of the Coast LLC,
7
+ available under the Creative Commons Attribution 4.0 International License.*
8
+
9
+ Hit die, saving throws, skill list, spellcasting ability, subclass level, Ability Score Improvement
10
+ levels and spell **slots** are computed by the pack — call `rules_lookup`, `create_sheet` or
11
+ `level_up` for those rather than reading them here. This document holds the proficiencies, the
12
+ starting equipment, the features by level, and the resource counts no tool models.
13
+
14
+ ## Warlock
15
+
16
+ **Armour** light · **Weapons** simple · **Tools** none
17
+ **Equipment** light crossbow and 20 bolts *or* any simple weapon; component pouch *or* arcane
18
+ focus; scholar's *or* dungeoneer's pack; leather armour, any simple weapon, two daggers
19
+ **ASI** 4, 8, 12, 16, 19 · **Pact Magic** Charisma, arcane focus, spells **known**, one swappable
20
+ each level. **All slots are the same level and return on a short or long rest** — this is the one
21
+ caster the slot arithmetic differs for.
22
+
23
+ | Level | Features | Cantrips | Spells known | Slots | Slot level | Invocations |
24
+ |---|---|---|---|---|---|---|
25
+ | 1 | Otherworldly Patron, Pact Magic | 2 | 2 | 1 | 1st | — |
26
+ | 2 | Eldritch Invocations | 2 | 3 | 2 | 1st | 2 |
27
+ | 3 | Pact Boon | 2 | 4 | 2 | 2nd | 2 |
28
+ | 5 | — | 3 | 6 | 2 | 3rd | 3 |
29
+ | 6 | Patron feature | 3 | 7 | 2 | 3rd | 3 |
30
+ | 7 | — | 3 | 8 | 2 | 4th | 4 |
31
+ | 9 | — | 3 | 10 | 2 | 5th | 5 |
32
+ | 10 | Patron feature | 4 | 10 | 2 | 5th | 5 |
33
+ | 11 | Mystic Arcanum (6th) | 4 | 11 | 3 | 5th | 5 |
34
+ | 13 | Mystic Arcanum (7th) | 4 | 12 | 3 | 5th | 6 |
35
+ | 14 | Patron feature | 4 | 12 | 3 | 5th | 6 |
36
+ | 15 | Mystic Arcanum (8th) | 4 | 13 | 3 | 5th | 7 |
37
+ | 17 | Mystic Arcanum (9th) | 4 | 14 | 4 | 5th | 7 |
38
+ | 18 | — | 4 | 14 | 4 | 5th | 8 |
39
+ | 20 | Eldritch Master | 4 | 15 | 4 | 5th | 8 |
40
+
41
+ (At the omitted ASI levels 4, 8, 12, 16 and 19: cantrips 3, 3, 4, 4, 4; spells known 5, 9, 11, 13,
42
+ 15; slots 2, 2, 3, 3, 4; slot level 2nd, 4th, 5th, 5th, 5th; invocations 2, 4, 6, 7, 8.)
43
+
44
+ - **Pact Boon** at 3, one of: **Pact of the Chain** — *find familiar* as a free ritual, with imp,
45
+ pseudodragon, quasit or sprite as extra forms, and you may forgo one of your attacks to let the
46
+ familiar attack with its reaction. **Pact of the Blade** — action to summon a melee pact weapon
47
+ you are proficient with, counting as magical; a 1-hour ritual binds an existing magic weapon to
48
+ the feature. **Pact of the Tome** — a Book of Shadows holding three cantrips from any lists, free
49
+ of your cantrips known.
50
+ - **Mystic Arcanum** One spell of the listed level, cast once per long rest without a slot.
51
+ - **Eldritch Master** One minute of entreaty regains all Pact Magic slots, once per long rest.
52
+ - **Eldritch Invocations**, swappable one per level. Prerequisites in brackets.
53
+ *At will, no slot*: **Armor of Shadows** *mage armor* on yourself · **Beast Speech** *speak with
54
+ animals* · **Eldritch Sight** *detect magic* · **Fiendish Vigor** *false life* at 1st level ·
55
+ **Mask of Many Faces** *disguise self* · **Misty Visions** *silent image* · **Ascendant Step**
56
+ *levitate* on yourself [9] · **Otherworldly Leap** *jump* on yourself [9] · **Whispers of the
57
+ Grave** *speak with dead* [9] · **Master of Myriad Forms** *alter self* [15] · **Visions of
58
+ Distant Realms** *arcane eye* [15] · **Chains of Carceri** *hold monster* on a celestial, fiend or
59
+ elemental, once each per long rest [15, Chain].
60
+ *Once per long rest, using a slot*: **Thief of Five Fates** *bane* · **Mire the Mind** *slow* [5] ·
61
+ **Sign of Ill Omen** *bestow curse* [5] · **Bewitching Whispers** *compulsion* [7] · **Dreadful
62
+ Word** *confusion* [7] · **Sculptor of Flesh** *polymorph* [7] · **Minions of Chaos** *conjure
63
+ elemental* [9].
64
+ *Other*: **Agonizing Blast** add Charisma to *eldritch blast* damage [blast] · **Eldritch Spear**
65
+ *eldritch blast* range 300 feet [blast] · **Repelling Blast** push 10 feet on a hit [blast] ·
66
+ **Beguiling Influence** Deception and Persuasion proficiency · **Devil's Sight** see 120 feet in
67
+ any darkness · **Eyes of the Rune Keeper** read all writing · **Gaze of Two Minds** action to
68
+ perceive through a willing humanoid, blinded and deafened yourself · **One with Shadows** action
69
+ to turn invisible in dim light or darkness until you move or act [5] · **Thirsting Blade** two
70
+ attacks with the pact weapon [5, Blade] · **Lifedrinker** extra necrotic equal to your Charisma on
71
+ a pact weapon hit [12, Blade] · **Voice of the Chain Master** telepathy through and speech from
72
+ your familiar [Chain] · **Witch Sight** see true forms within 30 feet [15] · **Book of Ancient
73
+ Secrets** two 1st-level ritual spells from any lists, free of your spells known, and more found in
74
+ play [Tome].
75
+
76
+ **The Fiend** (1): expanded spell list — 1 *burning hands, command*; 2 *blindness/deafness,
77
+ scorching ray*; 3 *fireball, stinking cloud*; 4 *fire shield, wall of fire*; 5 *flame strike,
78
+ hallow*. **Dark One's Blessing** — reducing a hostile creature to 0 hit points grants temporary hit
79
+ points equal to Charisma modifier + warlock level, minimum 1. (6) **Dark One's Own Luck** — add a
80
+ d10 to an ability check or save after seeing the roll, once per short or long rest.
81
+ (10) **Fiendish Resilience** — choose a damage type on each rest for resistance to it, bypassed by
82
+ magical and silver weapons. (14) **Hurl Through Hell** — on a hit, banish the target through the
83
+ lower planes until the end of your next turn; a non-fiend takes 10d10 psychic. Once per long rest.
@@ -0,0 +1,51 @@
1
+ # Wizard — features by level (SRD 5.1)
2
+
3
+ Attach to the **character creator** while building a wizard, and to the player agent
4
+ who plays one.
5
+
6
+ *This work includes material from the System Reference Document 5.1 by Wizards of the Coast LLC,
7
+ available under the Creative Commons Attribution 4.0 International License.*
8
+
9
+ Hit die, saving throws, skill list, spellcasting ability, subclass level, Ability Score Improvement
10
+ levels and spell **slots** are computed by the pack — call `rules_lookup`, `create_sheet` or
11
+ `level_up` for those rather than reading them here. This document holds the proficiencies, the
12
+ starting equipment, the features by level, and the resource counts no tool models.
13
+
14
+ ## Wizard
15
+
16
+ **Armour** none · **Weapons** dagger, dart, sling, quarterstaff, light crossbow · **Tools** none
17
+ **Equipment** quarterstaff *or* dagger; component pouch *or* arcane focus; scholar's *or*
18
+ explorer's pack; a spellbook
19
+ **ASI** 4, 8, 12, 16, 19 · **Spellcasting** Intelligence, arcane focus; **prepares** Intelligence
20
+ modifier + wizard level from the spellbook, changed on a long rest; ritual casting from the book
21
+ without preparing
22
+
23
+ | Level | Features | Cantrips |
24
+ |---|---|---|
25
+ | 1 | Spellcasting, Arcane Recovery | 3 |
26
+ | 2 | Arcane Tradition | 3 |
27
+ | 4 | (ASI) | 4 |
28
+ | 6 | Tradition feature | 4 |
29
+ | 10 | Tradition feature | 5 |
30
+ | 14 | Tradition feature | 5 |
31
+ | 18 | Spell Mastery | 5 |
32
+ | 20 | Signature Spells | 5 |
33
+
34
+ - **Spellbook** Six 1st-level spells at level 1, and **two more free spells of a castable level at
35
+ every wizard level**. Copying a found spell costs 2 hours and 50 gp per spell level.
36
+ - **Arcane Recovery** Once per day, on finishing a short rest, recover slots totalling half your
37
+ wizard level rounded up, none 6th or higher.
38
+ - **Arcane Tradition** at 2: Abjuration, Conjuration, Divination, Enchantment, Evocation, Illusion,
39
+ Necromancy or Transmutation.
40
+ - **Spell Mastery** Cast one chosen 1st-level and one 2nd-level spell from your book at their lowest
41
+ level at will, while prepared.
42
+ - **Signature Spells** Two 3rd-level spells always prepared, free of the prepared total, each
43
+ castable once at 3rd level without a slot per short or long rest.
44
+
45
+ **School of Evocation** (2): **Evocation Savant** — copying an evocation spell costs half the gold
46
+ and time. **Sculpt Spells** — 1 + the spell's level in creatures automatically succeed against your
47
+ evocation spell and take no damage where they would take half. (6) **Potent Cantrip** — a creature
48
+ succeeding against your cantrip still takes half its damage. (10) **Empowered Evocation** — add your
49
+ Intelligence modifier to one damage roll of a wizard evocation spell. (14) **Overchannel** — deal
50
+ maximum damage with a wizard spell of 1st to 5th level; free the first time per long rest, then
51
+ 2d12 necrotic per spell level to yourself, rising 1d12 each further use, ignoring resistance.