Repository navigation
feat: the 5e character sheet, as a ruleset module (slice 27) - #28
Merged
Merged
Conversation
character_sheets is one row per character in its own table, behind Ruleset::hasCharacterSheet(), so one ruleset's shape never reaches the core entities table and a system-agnostic campaign never sees the card. Only what a player decides is stored: the six scores, saving throw and skill proficiencies with expertise, hit points, the hit die and how many are spent, spell slots, armour class and speed. Every modifier, the proficiency bonus, every save and skill bonus, passive Perception and initiative are computed from the scores and the character's level on every read, in Support\Sheets\FifthEdition, which is pure and unit-tested. The card on the character's page reads for whoever may read the character and writes for whoever may edit it, EntityPolicy::update()'s rule: one form for every field, damage that comes off temporary hit points first, healing that stops at the maximum, and a long rest as the SRD states it. The party's pack from the ledger sits under it, and the compendium's attribution too, because the ability and skill names are SRD terms. The sheet travels nested under its character in the export, the reader refuses a score outside the bounds, the vault page prints the numbers, and the API show route carries it. The demo world has a rogue and a cleric.
…SQL keeps the media ordinals still
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Slice 27 of the P3 queue, the last of the four: the full 5e character sheet as a ruleset module.
Ruleset::hasCharacterSheet()is the seam, besidehasCompendium().Characters\Sheetaborts without it, the character page does not mount the card, and the API sets the relation only on such a campaign.character_sheets: one row per character in its own table. Six ability scores, saving throw and skill proficiencies with expertise, hit points with temporary, hit die and dice spent, spell slots per level, spellcasting ability, armour class and speed. The three lists and the slots are JSON on the row.Support\Sheets\FifthEdition: the maths, pure and unit-tested. Modifiers, the proficiency bonus from the level, save and skill bonuses, passive Perception, initiative, and the long rest's hit dice. Nothing derived is ever stored.EntityPolicy::update(); read by whoever may read the character. The party's pack from the ledger and the compendium's attribution sit under it.sheet, the reader refusing a score outside the bounds, the vault page printing the numbers, andsheeton the API show route with the derived numbers beside the stored ones.Checks
docs/plans/2026-09-13-feat-character-sheet-plan.md.