# hocha113/calamityoverhaul architecture

> Architecture diagram of the GitHub repository hocha113/calamityoverhaul, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/hocha113/calamityoverhaul
- Repository: https://github.com/hocha113/calamityoverhaul

## Overview

Calamity Overhaul is a Terraria gameplay mod that adds combat and world content alongside cyberware, quest, and industrial systems. Its user-facing path is gameplay input into a system such as a cyberware skill or quest interface, followed by in-game effects or persistent progress. The tree also shows broad content branches for game modes, scenarios, items, and material transport. The README only identifies the project; relationships below rely on the sampled excerpts and SOURCE INDEX, so unsampled subsystem internals are summarized conservatively.

Main entry points: [`Content/EntrustManager/EntrustManagerUI.cs`](https://github.com/hocha113/calamityoverhaul/blob/main/Content/EntrustManager/EntrustManagerUI.cs) (Quest manager UI), [`Content/Cyberwares/Skills/CyberwareSkillRadialController.cs`](https://github.com/hocha113/calamityoverhaul/blob/main/Content/Cyberwares/Skills/CyberwareSkillRadialController.cs) (Skill radial), [`CWRMod.cs`](https://github.com/hocha113/calamityoverhaul/blob/main/CWRMod.cs) (Mod lifecycle), [`Content/Industrials/MaterialFlow/ItemPipelines/ItemPipelineTP.cs`](https://github.com/hocha113/calamityoverhaul/blob/main/Content/Industrials/MaterialFlow/ItemPipelines/ItemPipelineTP.cs) (Item pipelines)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_core["Mod foundation"]
  node_mod["Mod lifecycle<br/>[CWRMod.cs]"]
  node_constants["Asset constants<br/>[CWRConstant.cs]"]
  node_effects["Effect assets<br/>[EffectLoader.cs]"]
  node_sound["Sound system<br/>[CWRSound.cs]"]
end

subgraph group_player["Player systems"]
  node_cyberware["Cyberware<br/>[BaseCyberware.cs]"]
  node_skills["Skill radial"]
  node_skillbase["Skill definitions"]
  node_hack["Hack-time system"]
  node_freezing["Time freezing"]
end

subgraph group_world["World content"]
  node_crafting["Crafted content<br/>[CWRCrafted.cs]"]
  node_items["Items and combat<br/>[CWRItem.cs]"]
  node_mobs["Brutal enemies"]
  node_modes["Game modes"]
  node_scenarios["World scenarios"]
end

subgraph group_industry["Industrial systems"]
  node_itemsflow["Item pipelines<br/>[ItemPipelineTP.cs]"]
  node_fluids["Fluid pipelines<br/>[FluidPipeline.cs]"]
  node_machines["Electric machines"]
  node_generator["Thermal generator"]
end

subgraph group_quests["Quest systems"]
  node_quests["Quest log<br/>[QuestLog.cs]"]
  node_manager["Quest manager UI"]
  node_entries["Quest entries"]
  node_provider["Quest providers<br/>[EntrustProvider.cs]"]
  node_style["Manager styles"]
end

node_player(("Player"))

node_mod -->|"loads lifecycle"| node_constants
node_mod -->|"loads assets"| node_effects
node_player -.->|"uses skill wheel"| node_skills
node_skills -->|"resolves skills"| node_skillbase
node_skills -->|"reads cyberware"| node_cyberware
node_skills -->|"uses hack-time"| node_hack
node_manager -->|"references quest log"| node_quests
node_manager -->|"displays entries"| node_entries
node_manager -->|"selects styles"| node_style
node_manager -->|"uses providers"| node_provider
node_itemsflow -.->|"connects storage"| node_machines
node_fluids -->|"shares pipeline base"| node_itemsflow
node_generator -.->|"provides storage"| node_machines
node_mobs -.->|"adds mode encounters"| node_modes
node_scenarios -.->|"explores worlds"| node_player

click node_mod "https://github.com/hocha113/calamityoverhaul/blob/main/CWRMod.cs"
click node_constants "https://github.com/hocha113/calamityoverhaul/blob/main/CWRConstant.cs"
click node_effects "https://github.com/hocha113/calamityoverhaul/blob/main/Common/EffectLoader.cs"
click node_sound "https://github.com/hocha113/calamityoverhaul/blob/main/Common/CWRSound.cs"
click node_crafting "https://github.com/hocha113/calamityoverhaul/blob/main/Content/CWRCrafted.cs"
click node_cyberware "https://github.com/hocha113/calamityoverhaul/blob/main/Content/Cyberwares/BaseCyberware.cs"
click node_skills "https://github.com/hocha113/calamityoverhaul/blob/main/Content/Cyberwares/Skills/CyberwareSkillRadialController.cs"
click node_skillbase "https://github.com/hocha113/calamityoverhaul/blob/main/Content/Cyberwares/Skills/CyberwareSkillBase.cs"
click node_hack "https://github.com/hocha113/calamityoverhaul/blob/main/Content/HackTimes/HackTimeAuthorityPlayer.cs"
click node_freezing "https://github.com/hocha113/calamityoverhaul/blob/main/Content/TimeFreezes/TimeFreezeSystem.cs"
click node_items "https://github.com/hocha113/calamityoverhaul/blob/main/Content/CWRItem.cs"
click node_mobs "https://github.com/hocha113/calamityoverhaul/tree/main/Content/GameModes/BrutalMobs"
click node_modes "https://github.com/hocha113/calamityoverhaul/tree/main/Content/GameModes"
click node_scenarios "https://github.com/hocha113/calamityoverhaul/tree/main/Content/Scenarios"
click node_quests "https://github.com/hocha113/calamityoverhaul/blob/main/Content/QuestLogs/QuestLog.cs"
click node_manager "https://github.com/hocha113/calamityoverhaul/blob/main/Content/EntrustManager/EntrustManagerUI.cs"
click node_entries "https://github.com/hocha113/calamityoverhaul/blob/main/Content/EntrustManager/EntrustEntryData.cs"
click node_provider "https://github.com/hocha113/calamityoverhaul/blob/main/Content/EntrustManager/EntrustProvider.cs"
click node_style "https://github.com/hocha113/calamityoverhaul/blob/main/Content/EntrustManager/BaseManagerStyle.cs"
click node_itemsflow "https://github.com/hocha113/calamityoverhaul/blob/main/Content/Industrials/MaterialFlow/ItemPipelines/ItemPipelineTP.cs"
click node_fluids "https://github.com/hocha113/calamityoverhaul/blob/main/Content/Industrials/MaterialFlow/Fluids/FluidPipeline.cs"
click node_machines "https://github.com/hocha113/calamityoverhaul/tree/main/Content/Industrials/ElectricPowers"
click node_generator "https://github.com/hocha113/calamityoverhaul/blob/main/Content/Industrials/Generator/Thermal/ThermalStorageProvider.cs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_mod,node_constants,node_effects,node_sound toneBlue
class node_cyberware,node_skills,node_skillbase,node_hack,node_freezing toneAmber
class node_crafting,node_items,node_mobs,node_modes,node_scenarios toneMint
class node_itemsflow,node_fluids,node_machines,node_generator toneRose
class node_quests,node_manager,node_entries,node_provider,node_style,node_player toneIndigo
```

## Components

### Mod foundation

- [Mod lifecycle](https://github.com/hocha113/calamityoverhaul/blob/main/CWRMod.cs): `CWRMod.cs`
- [Asset constants](https://github.com/hocha113/calamityoverhaul/blob/main/CWRConstant.cs): `CWRConstant.cs`
- [Effect assets](https://github.com/hocha113/calamityoverhaul/blob/main/Common/EffectLoader.cs): `Common/EffectLoader.cs`
- [Sound system](https://github.com/hocha113/calamityoverhaul/blob/main/Common/CWRSound.cs): `Common/CWRSound.cs`

### Player systems

- [Cyberware](https://github.com/hocha113/calamityoverhaul/blob/main/Content/Cyberwares/BaseCyberware.cs): `Content/Cyberwares/BaseCyberware.cs`
- [Skill radial](https://github.com/hocha113/calamityoverhaul/blob/main/Content/Cyberwares/Skills/CyberwareSkillRadialController.cs): `Content/Cyberwares/Skills/CyberwareSkillRadialController.cs`
- [Skill definitions](https://github.com/hocha113/calamityoverhaul/blob/main/Content/Cyberwares/Skills/CyberwareSkillBase.cs): `Content/Cyberwares/Skills/CyberwareSkillBase.cs`
- [Hack-time system](https://github.com/hocha113/calamityoverhaul/blob/main/Content/HackTimes/HackTimeAuthorityPlayer.cs): `Content/HackTimes/HackTimeAuthorityPlayer.cs`
- [Time freezing](https://github.com/hocha113/calamityoverhaul/blob/main/Content/TimeFreezes/TimeFreezeSystem.cs): `Content/TimeFreezes/TimeFreezeSystem.cs`

### World content

- [Crafted content](https://github.com/hocha113/calamityoverhaul/blob/main/Content/CWRCrafted.cs): `Content/CWRCrafted.cs`
- [Items and combat](https://github.com/hocha113/calamityoverhaul/blob/main/Content/CWRItem.cs): `Content/CWRItem.cs`
- [Brutal enemies](https://github.com/hocha113/calamityoverhaul/tree/main/Content/GameModes/BrutalMobs): `Content/GameModes/BrutalMobs`
- [Game modes](https://github.com/hocha113/calamityoverhaul/tree/main/Content/GameModes): `Content/GameModes`
- [World scenarios](https://github.com/hocha113/calamityoverhaul/tree/main/Content/Scenarios): `Content/Scenarios`

### Industrial systems

- [Item pipelines](https://github.com/hocha113/calamityoverhaul/blob/main/Content/Industrials/MaterialFlow/ItemPipelines/ItemPipelineTP.cs): `Content/Industrials/MaterialFlow/ItemPipelines/ItemPipelineTP.cs`
- [Fluid pipelines](https://github.com/hocha113/calamityoverhaul/blob/main/Content/Industrials/MaterialFlow/Fluids/FluidPipeline.cs): `Content/Industrials/MaterialFlow/Fluids/FluidPipeline.cs`
- [Electric machines](https://github.com/hocha113/calamityoverhaul/tree/main/Content/Industrials/ElectricPowers): `Content/Industrials/ElectricPowers`
- [Thermal generator](https://github.com/hocha113/calamityoverhaul/blob/main/Content/Industrials/Generator/Thermal/ThermalStorageProvider.cs): `Content/Industrials/Generator/Thermal/ThermalStorageProvider.cs`

### Quest systems

- [Quest log](https://github.com/hocha113/calamityoverhaul/blob/main/Content/QuestLogs/QuestLog.cs): `Content/QuestLogs/QuestLog.cs`
- [Quest manager UI](https://github.com/hocha113/calamityoverhaul/blob/main/Content/EntrustManager/EntrustManagerUI.cs): `Content/EntrustManager/EntrustManagerUI.cs`
- [Quest entries](https://github.com/hocha113/calamityoverhaul/blob/main/Content/EntrustManager/EntrustEntryData.cs): `Content/EntrustManager/EntrustEntryData.cs`
- [Quest providers](https://github.com/hocha113/calamityoverhaul/blob/main/Content/EntrustManager/EntrustProvider.cs): `Content/EntrustManager/EntrustProvider.cs`
- [Manager styles](https://github.com/hocha113/calamityoverhaul/blob/main/Content/EntrustManager/BaseManagerStyle.cs): `Content/EntrustManager/BaseManagerStyle.cs`

### Other components

- **Player**

## Connections

- Mod lifecycle → Asset constants: loads lifecycle (evidence: `CWRMod.cs`)
- Mod lifecycle → Effect assets: loads assets (evidence: `CWRMod.cs`)
- Player → Skill radial: uses skill wheel
- Skill radial → Skill definitions: resolves skills (evidence: `Content/Cyberwares/Skills/CyberwareSkillRadialController.cs`)
- Skill radial → Cyberware: reads cyberware (evidence: `Content/Cyberwares/Skills/CyberwareSkillRadialController.cs`)
- Skill radial → Hack-time system: uses hack-time (evidence: `Content/Cyberwares/Skills/CyberwareSkillRadialController.cs`)
- Quest manager UI → Quest log: references quest log (evidence: `Content/EntrustManager/EntrustManagerUI.cs`)
- Quest manager UI → Quest entries: displays entries (evidence: `Content/EntrustManager/EntrustManagerUI.cs`)
- Quest manager UI → Manager styles: selects styles (evidence: `Content/EntrustManager/EntrustManagerUI.cs`)
- Quest manager UI → Quest providers: uses providers (evidence: `Content/EntrustManager/EntrustManagerUI.cs`)
- Item pipelines → Electric machines: connects storage (evidence: `Content/Industrials/MaterialFlow/ItemPipelines/ItemPipelineTP.cs`)
- Fluid pipelines → Item pipelines: shares pipeline base (evidence: `Content/Industrials/MaterialFlow/Fluids/FluidPipeline.cs`)
- Thermal generator → Electric machines: provides storage
- Brutal enemies → Game modes: adds mode encounters
- World scenarios → Player: explores worlds
