How sw5e-foundry/sw5e-module works
SW5E is a Foundry VTT ruleset module for dnd5e. Its runtime code extends character and starship mechanics and provides starship-sheet context; separate utilities generate monster compendium actor data for two collections. The excerpts and source index establish selected module dependencies, but do not show the overall Foundry hook-registration path or all user-facing flows, so those links are omitted rather than inferred.
Main entry points: starship-data.mjs Starship rules data · identity.mjs Identity resolution · generate-generalized.mjs Actor generation · starship-routing-gate.mjs Power routing gate
Components 17
Foundry ruleset
- SW5E module
scripts/module.mjs
Character mechanics
- Character deployments
scripts/character-deployments.mjs - Proficiency rules
scripts/patch/proficiency.mjs - Maneuver item data
scripts/data/item/maneuver.mjs
Starship mechanics
- Starship rules data
scripts/starship-data.mjs - Power routing gate
scripts/starship-routing-gate.mjs - Starship sheet context
scripts/patch/starship-sheet-core-context.mjs
SnV generation
- Feature classification
utils/snv-monsters/classify.mjs - Identity resolution
utils/snv-monsters/identity.mjs - Actor generation
utils/snv-monsters/generate-generalized.mjs - Write safeguards
utils/snv-monsters/write-guard.mjs
VGH generation
- Stat-block parsing
utils/veshs-galactic-holodex/stat-block.mjs - Casting embedding
utils/veshs-galactic-holodex/embed-casting.mjs - Actor generation
utils/veshs-galactic-holodex/generate-generalized.mjs - Collection population
utils/veshs-galactic-holodex/populate.mjs
Other components
- Foundry user
- dnd5e system
Connections 15
- Foundry user → SW5E module: uses
README.md - SW5E module → dnd5e system: extends
README.md - Starship rules data → Character deployments: reads
scripts/starship-data.mjs - Starship rules data → Proficiency rules: uses
scripts/starship-data.mjs - Power routing gate → Character deployments: reads
scripts/starship-routing-gate.mjs - Power routing gate → Starship rules data: reads
scripts/starship-routing-gate.mjs - Starship sheet context → Starship rules data: reads
scripts/patch/starship-sheet-core-context.mjs - Starship sheet context → Proficiency rules: uses
scripts/patch/starship-sheet-core-context.mjs - Feature classification → Identity resolution: reads
utils/snv-monsters/classify.mjs - Actor generation → Feature classification: uses
utils/snv-monsters/generate-generalized.mjs - Actor generation → Identity resolution: resolves
utils/snv-monsters/generate-generalized.mjs - Identity resolution → Write safeguards: checks
utils/snv-monsters/identity.mjs - Stat-block parsing → Actor generation: parses for
utils/veshs-galactic-holodex/generate-generalized.mjs - Casting embedding → Actor generation: embeds into
utils/veshs-galactic-holodex/generate-generalized.mjs - Collection population → Actor generation: generates with
utils/veshs-galactic-holodex/populate.mjs