How chucapabra/dnd works
D&D Helper is a desktop character-management and rules-calculation program for a small group; the README explicitly says it is not for original D&D. The main workflow is using the WPF character screen to manage a character and obtain calculated stats, health, damage, inventory, and spell information, with character data persisted locally. The tree and source index also identify class/race configuration, skills, effects, a diary, and reference-book loading. Several connections below are dashed because the available excerpts do not show the relevant call sites; unsampled subsystems are represented at their exact directory paths.
Main entry points: Main.xaml.cs Character screen · GridCharacteristics.cs Stats grid · PlayerClass.cs Class and race · InventoryLoot.cs Inventory and loot
Components 18
Desktop interface
- Character screen
Windows/Main.xaml.cs - Settings window
Windows/Settings.xaml.cs - Stats grid
Modules/Сharacteristics/GridCharacteristics.cs
Character rules
- Stat rules
Modules/Сharacteristics/CharacteristicTable.cs - Class and race
Modules/Config/PlayerClass.cs - Skills and trees
Modules/Character/Skills.cs - Status effects
Modules/Character/Effects.cs - Health and damage
Modules/Character/Health.cs - Damage calculation
Modules/Character/DamageCalculator.cs
Items and spells
- Inventory and loot
Modules/Inventory/InventoryLoot.cs - Backpack
Modules/Inventory/Backpack.cs - Spell management
Modules/MagicSpells/MagicSpells.cs - Spell search
Modules/MagicSpells/MagicSearch.cs
Data and configuration
- Character diary
Modules/Diary/DiaryManager.cs - Character saves
Modules/Settings/DataSave.cs - Rules repositories
Modules/Settings/SetRepository.cs - Reference books
Modules/ReferenceBooks/LoadingReferenceBook.cs
Other components
- Player
Connections 19
- Player → Character screen: uses
- Character screen → Stats grid: shows stats
Windows/Main.xaml.cs - Character screen → Class and race: selects options
Windows/Main.xaml.cs - Character screen → Skills and trees: manages skills
Windows/Main.xaml.cs - Character screen → Status effects: manages effects
Windows/Main.xaml.cs - Character screen → Health and damage: shows health
Windows/Main.xaml.cs - Character screen → Damage calculation: requests damage
Windows/Main.xaml.cs - Character screen → Inventory and loot: manages items
Windows/Main.xaml.cs - Character screen → Spell management: manages spells
Windows/Main.xaml.cs - Character screen → Character diary: opens diary
Windows/Main.xaml.cs - Character screen → Reference books: loads references
Windows/Main.xaml.cs - Stats grid → Stat rules: uses stat rules
Modules/Сharacteristics/GridCharacteristics.cs - Class and race → Skills and trees: reloads skills
Modules/Config/PlayerClass.cs - Inventory and loot → Backpack: uses backpack
- Spell management → Spell search: filters spells
Modules/MagicSpells/MagicSpells.cs - Character screen → Character saves: loads and saves
Windows/Main.xaml.cs - Character screen → Settings window: opens settings
- Rules repositories → Character saves: reads configuration
Modules/Settings/SetRepository.cs - Reference books → Rules repositories: uses URLs
Modules/ReferenceBooks/LoadingReferenceBook.cs