How revoltoftheatoms/riskofrogue works
Risk of Rogue is a Deadzone: Rogue mod that adds Risk of Rain 2 items and a difficulty timer. The player encounters items through Deadzone’s item orbs, then uses them through its inventory and native item UI; the mod also displays RoR2 buff icons and a run timer. The Lua tree separates startup, game integration, item effects, UI, and state, but those implementations were not excerpted, so internal runtime links are omitted or marked unverified. README documents the player-facing capabilities; source excerpts show supporting item data and icon extraction.
Main entry points: engine_actions.lua Item Effects · inventory.json Player Inventory · extract_ror2_assets.py Icon Extractor · hud.lua HUD
Components 19
Mod Runtime
- Mod Startup
mod/RiskOfRogue/Scripts/main.lua - Game Integration
mod/RiskOfRogue/Scripts/parts/game.lua - Game Hooks
mod/RiskOfRogue/Scripts/parts/hooks.lua - Run State
mod/RiskOfRogue/Scripts/parts/state.lua - Difficulty Clock
mod/RiskOfRogue/Scripts/parts/clock.lua
Items and Effects
- Item Definitions
mod/RiskOfRogue/Scripts/data_gen.lua - Orb Items
sheets/orbs.json - Item Effects
mod/RiskOfRogue/Scripts/parts/engine_actions.lua - Proc Engine
mod/RiskOfRogue/Scripts/parts/engine_procs.lua - Effect Ticking
mod/RiskOfRogue/Scripts/parts/engine_tick.lua - Player Inventory
sheets/inventory.json
Game Presentation
- HUD
mod/RiskOfRogue/Scripts/parts/hud.lua - Buff Icons
sheets/buffs.json - Item Text
sheets/item_text.json
Icon Assets
- Icon Extractor
tools/extract_ror2_assets.py - Icon Asset Map
tools/ror2_assets.json
Other components
- Player
- Deadzone Game
- Risk of Rain 2
Connections 17
- Player → Deadzone Game: plays
README.md - Deadzone Game → Mod Startup: loads mod
README.md - Player → Orb Items: receives items
README.md - Orb Items → Player Inventory: adds items
README.md - Item Definitions → Player Inventory: defines stacking
README.md - Player Inventory → Player: shows items
README.md - Item Definitions → Item Effects: configures effects
- Item Effects → Proc Engine: dispatches procs
- Item Effects → Effect Ticking: runs timed effects
- Mod Startup → Game Integration: initializes
- Game Integration → Game Hooks: registers hooks
- Difficulty Clock → HUD: shows timer
README.md - Buff Icons → HUD: shows buff icons
README.md - Item Text → Player: provides tooltips
README.md - Risk of Rain 2 → Icon Extractor: provides icon assets
tools/extract_ror2_assets.py - Icon Asset Map → Icon Extractor: selects textures
tools/extract_ror2_assets.py - Icon Extractor → HUD: writes mod icons
README.md