Mycopunk

Details

Last Updated
last month
First Uploaded
last month
Downloads
49
Likes
0
Size
16KB
Dependency string
Sparroh-LayingCableFix-1.0.0
Dependants

Categories

LayingCableFix

A BepInEx mod for MycoPunk that fixes the Shocklance Laying Cable damage boost bug when the cable is not tethered to the player.

Description

This client-side mod addresses a bug in the Shocklance weapon's Laying Cable upgrade system. The original implementation incorrectly applies damage bonuses even when the cable is deployed but not properly tethered to the player. The mod patches the Shocklance.ModifyOutgoingDamage method to ensure damage boosts are only applied when the cable is both active and properly attached to a player.

The fix prevents unintended damage amplification that could occur when the cable is simply dragged along the ground or deployed without connection, while preserving the intended bonus effects when the cable is actively tethered between the weapon and player character.

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 "LayingCableFix" under MycoPunk community
  3. Install and enable the mod

Option 2: Manual Installation

  1. Ensure BepInEx is installed for MycoPunk
  2. Copy LayingCableFix.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 Boost Behavior:

  • Tethered Cable: Full damage bonus applied when properly attached to player
  • Loose Cable: No damage bonus when cable is deployed but not attached
  • Inactive Cable: Standard damage with no modifications

The mod logs cable attachment status for debugging and automatically checks tether state before applying damage multipliers.

Help

  • Damage still boosted? Make sure the cable is properly tethered to your character, not just deployed
  • No damage changes visible? The mod only affects Shocklance weapon with Laying Cable upgrade
  • Can't see tether effects? Check that you're using the weapon with cable functionality enabled
  • Conflicts with other mods? Other mods modifying Shocklance damage may need compatibility checking
  • Performance impact? Minimal - only processes damage events for Shocklance weapons
  • Tethering not working? Ensure the cable connection system is functioning normally - this mod doesn't change that

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.
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.