Sparroh-LayingCableFix icon

LayingCableFix

Fixes Laying Cable's outgoing damage increase bug.

Last updated 3 weeks ago
Total downloads 36
Total rating 0 
Categories Gameplay
Dependency string Sparroh-LayingCableFix-1.0.0
Dependants 0 other packages depend on this package

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

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