GearshiftFix
Removes the stacking damage resistance bug from Gearshift. (Hopefully)GearshiftFix
A BepInEx mod for MycoPunk that fixes the Shocklance (Gearshift) damage resistance stacking and application bugs.
Description
This client-side mod addresses a critical bug in the Shocklance weapon's damage resistance system. The Gearshift (Shocklance) weapon is designed to provide damage resistance while auger boosting and when attached to the player via cable, but the original implementation had issues that prevented proper resistance application or caused resistance values to stack incorrectly.
The mod patches the Shocklance.OnBeforeTakeDamage method to correctly apply the configured damage reduction percentages based on the weapon's state. Damage resistance is properly applied during auger boosting with configured duration and percentage, and additional resistance is applied when the weapon's cable is attached to the player.
Getting Started
Dependencies
- MycoPunk (base game)
- BepInEx - Version 5.4.2403 or compatible
- .NET Framework 4.8
Building/Compiling
- Clone this repository
- Open the solution file in Visual Studio, Rider, or your preferred C# IDE
- Build the project in Release mode
Alternatively, use dotnet CLI:
dotnet build --configuration Release
Installing
Option 1: Via Thunderstore (Recommended)
- Download and install using the Thunderstore Mod Manager
- Search for "GearshiftFix" under MycoPunk community
- Install and enable the mod
Option 2: Manual Installation
- Ensure BepInEx is installed for MycoPunk
- Copy
GearshiftFix.dllfrom the build folder - Place it in
<MycoPunk Game Directory>/BepInEx/plugins/ - Launch the game
Executing program
Once installed, the mod works automatically and affects all Shocklance usage:
Damage Resistance Application:
- Auger Boosting: Provides configured damage resistance while actively auger boosting
- Cable Attachment: Additional damage resistance when weapon cable is attached to player
- Timing: Auger resistance persists for configured duration after boosting stops
- Stacking: Properly applies multiple resistance sources without stacking bugs
Technical Details:
- Resistance values are configured in the Shocklance weapon data
augerDamageResist- Resistance percentage during auger boostingaugerDamageResistDuration- How long resistance persists after boostingcableDamageResist- Additional resistance when cable is attached
Help
- Resistance not working? Ensure you're using the Shocklance weapon and check boost/cable attachment status
- Different resistance values? This mod doesn't change resistance amounts - it only fixes application bugs
- Conflicts with other mods? Other mods modifying Shocklance damage taking may interfere
- Performance impact? Minimal - only patches one damage method for Shocklance
- Affects other weapons? No - this mod only affects Shocklance/Gearshift weapon mechanics
- Testing resistance? Use damage meters or look for consistent damage reduction values
Authors
- Sparroh
- funlennysub (original mod template)
- @DomPizzie (README template)
License
- This project is licensed under the MIT License - see the LICENSE.md file for details
