Mycopunk
This package has been deprecated and may no longer be maintained. We recommend looking for an alternative.
Install with App

Details

Latest version
1.0.0
Last Updated
First Uploaded
Downloads
178
Likes
0
Size
16KB
Dependants

Categories

Tags

Deprecated

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

  1. Clone this repository
  2. Open the solution file in Visual Studio, Rider, or your preferred C# IDE
  3. Build the project in Release mode

Alternatively, use dotnet CLI:

dotnet build --configuration Release

Installing

Option 1: Via Thunderstore (Recommended)

  1. Download and install using the Thunderstore Mod Manager
  2. Search for "GearshiftFix" under MycoPunk community
  3. Install and enable the mod

Option 2: Manual Installation

  1. Ensure BepInEx is installed for MycoPunk
  2. Copy GearshiftFix.dll from the build folder
  3. Place it in <MycoPunk Game Directory>/BepInEx/plugins/
  4. 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 boosting
  • augerDamageResistDuration - How long resistance persists after boosting
  • cableDamageResist - 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
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.