You are viewing a potentially older version of this package. View all versions.
Sparroh-AtmosphericEnergizersRework-1.2.0 icon

AtmosphericEnergizersRework

Reworks Atmospheric Energizers (Swarm Gun) auto ammo regeneration behavior.

Date uploaded 20 hours ago
Version 1.2.0
Download link Sparroh-AtmosphericEnergizersRework-1.2.0.zip
Downloads 3
Dependency string Sparroh-AtmosphericEnergizersRework-1.2.0

This mod requires the following mods to function

BepInEx-BepInExPack_Mycopunk-5.4.2403 icon
BepInEx-BepInExPack_Mycopunk

BepInEx pack for Mycopunk. Preconfigured and ready to use.

Preferred version: 5.4.2403

README

Atmospheric Energizers Rework

A BepInEx mod for Mycopunk that reworks Atmospheric Energizers (Swarm Gun) auto ammo regeneration.

Features

  • Regenerates stored ammo (reserve) while hovering bullets are active, instead of magazine ammo
  • Configurable delay after last fire before regen can start (default 1 second)
  • Uses the weapon's existing auto ammo regen interval (optionally scaled)
  • Restores a configurable amount of ammo per tick, up to capacity or a custom cap
  • Hot-reloads config from disk while the game is running

Installation

Thunderstore (recommended)

  1. Install via the Thunderstore Mod Manager (or another compatible manager).
  2. The mod is placed in the correct BepInEx plugins folder automatically.

Manual

  1. Install BepInEx for Mycopunk (BepInExPack_Mycopunk 5.4.2403 or compatible).
  2. Copy AtmosphericEnergizersRework.dll into <Mycopunk>/BepInEx/plugins/.
  3. Launch the game. Confirm load in the BepInEx log: AtmosphericEnergizersRework v1.2.0 loaded successfully.

Dependencies

Configuration

Config file (created on first launch):

BepInEx/config/sparroh.atmosphericenergizersrework.cfg

Option Default Description
Enabled true Master toggle. When off, vanilla SwarmGun regen runs unchanged.
Fire Delay 1 Seconds after last fire before regen can start.
Ammo Per Tick 1 Stored ammo restored each regen tick (minimum 1).
Interval Multiplier 1 Multiplies the weapon's autoAmmoRegenInterval. Below 1 = faster; above 1 = slower.
Cap Mode AmmoCapacity AmmoCapacity uses GunData.ammoCapacity. Custom uses Custom Cap.
Custom Cap 999 Max StoredAmmo when Cap Mode is Custom.

Edits to the cfg file are picked up automatically (debounced hot-reload).

Building

  1. Clone the repository: https://github.com/Little-Sparroh/AtmosphericEnergizersRework
  2. Ensure the .csproj reference paths point at your local Mycopunk and BepInEx installs.
  3. Build:
dotnet build --configuration Release

Output DLL: bin/Release/netstandard2.1/AtmosphericEnergizersRework.dll

Troubleshooting

  • Mod not loading? Confirm BepInEx is installed and check BepInEx/LogOutput.log for errors.
  • No effect in-game? Ensure you are using Atmospheric Energizers (Swarm Gun), that hovering bullets are active after firing, and that Enabled is true in the config. The weapon also needs an auto ammo regen upgrade/interval greater than 0.

Authors

  • Sparroh

License

This project is licensed under the MIT License — see the LICENSE file for details.

CHANGELOG

Changelog

1.2.0

  • Add ConfigManager with hot-reload (AimAnyTime-style)
  • Configurable: Enabled, Fire Delay, Ammo Per Tick, Interval Multiplier, Cap Mode, Custom Cap
  • Regen no longer skips the rest of SwarmGun.OnActiveUpdate (hover damage UI, heal pulse, auto-release, friend-fire, etc.)
  • Skip custom regen while reloading (matches vanilla control flow)

1.1.1

  • Maintenance and packaging update for the current build

1.1.0

  • Refine Swarm Gun auto ammo regen while hovering bullets are active
  • Enforce a short delay after last fire before regen

1.0.0

  • Initial release
  • Rework Atmospheric Energizers (Swarm Gun) auto ammo regeneration