MageQuit Mod Framework
A lightweight, modular framework for creating MageQuit mods with BepInEx. Provides structured systems for spell modifications, module lifecycle management, UI integration, and game data access.
What is This?
MageQuit Mod Framework simplifies mod development for the game MageQuit by providing:
- Spell Modification System - Centralized modifier registration with Base × Multiplier pattern
- Module System - Structured lifecycle hooks (Initialize, InitializeAfterGameData)
- Game Data Access - Event-driven system for safe access to game configuration
- UI Components - Dynamic mod menu and reusable UI building blocks
- Helper Utilities - Common operations for game state and element manipulation
The framework handles the complexity of Harmony patching, initialization timing, and mod coordination so you can focus on implementing your mod's unique features.
Installation
For Mod Developers
- Clone or download this repository
- Build the framework:
dotnet build MageQuitModFramework/MageQuitModFramework.csproj - Copy
bin/Debug/net472/MageQuitModFramework.dllto your MageQuitBepInEx/plugins/folder - Reference the framework DLL in your mod project
For Mod Users
- Install BepInEx for MageQuit (if not already installed)
- Download
MageQuitModFramework.dllfrom releases - Place it in
MageQuit/BepInEx/plugins/ - Install any mods that depend on this framework
Project Structure
- MageQuitModFramework/ - Core framework library
src/Data/- Game data initialization and accesssrc/Modding/- Module system and registrationsrc/Spells/- Spell modification systemsrc/UI/- Dynamic menu and UI componentssrc/Utilities/- Helper functions
- ExampleMod/ - Sample mod demonstrating framework usage
- MageQuitModFramework.Tests/ - Unit tests
Requirements
- .NET Framework 4.7.2
- BepInEx 5.x
- HarmonyX (included with BepInEx)
- MageQuit game
License
This project is open source. See LICENSE file for details.