How x753/lethal-company-more-suits works
Project type and purpose
• This is a Unity‐based game mod (an open-source plugin) built on the BepInEx mod loader for Among Us.
• Its purpose is to provide a library that dynamically loads additional “suit” assets (PNG + optional JSON metadata) at runtime.
File structure
• Top level:
• MoreSuits.cs – the single C# source file that compiles into MoreSuits.dll
• CHANGELOG.md, LICENSE, README.md – documentation and history
• At runtime you also have:
• BepInEx/Plugins/x753-More_Suits-X.X.X/MoreSuits.dll
• BepInEx/Plugins/x753-More_Suits-X.X.X/moresuits/…PNG files
• BepInEx/Plugins/x753-More_Suits-X.X.X/advanced/…JSON files
• BepInEx/config/x753.More_Suits.cfg
• Optional !less-suits.txt
README for additional insights
• The plugin scans the “moresuits” folder for PNGs and optional JSONs in “advanced”
• It writes/reads a config file to enable/disable specific suits
• It exposes itself as a library so third-party mod packages can drop PNGs into “moresuits” without bundling the DLL
Main components and their interactions
a. Unity Game Engine (Among Us)
b. BepInEx Loader
c. MoreSuits Plugin (MoreSuits.dll)
d. Asset folders:
• /moresuits (user/custom suit PNGs)
• /advanced (optional JSON per suit + extra textures)
e. Configuration subsystem
f. Optional External mod packages (depend on MoreSuits to supply suits)
Relationships/Data Flow:
1. BepInEx starts the game → loads MoreSuits.dll
2. MoreSuits on Awake/Start reads its config file (x753.More_Suits.cfg)
3. Plugin enumerates /moresuits folder for PNG assets
4. For each PNG it checks for matching JSON in /advanced → parses metadata (emission, price, etc.)
5. Plugin registers new suit assets with Unity’s renderer via the HD Lit Shader API
6. At store load time, plugin injects purchasable suits based on “PRICE” in JSON
7. Game UI reflects new suits, users select them at runtime
Architectural patterns and design principles
• Plugin architecture via BepInEx (inversion of control: BepInEx calls your code)
• File-based extensibility: scanning directory for user content
• Convention over configuration: folder names (“moresuits”, “advanced”) and naming (matching PNG↔JSON)
• Lightweight, single-responsibility plugin – all logic in one DLL
• Clear component labels (e.g., “MoreSuits.dll”)
• Annotations for key technologies:
• BepInEx plugin framework (C# .NET 4.x)
• Unity HD Lit Shader (for emission)
• File I/O (PNG, JSON, TXT)