baggers-Ship_Maintenance icon

Ship Maintenance

Maintain engine panels, door machinery, roof electrics, and a separate oil port for cheaper travel. Noisy repairs, lightning and explosion damage, cheap supplies, and a one-trip apparatus boost with a sellable spent shell.

By baggers
Last updated 17 minutes ago
Total downloads 0
Total rating 0 
Categories AI Generated
Dependency string baggers-Ship_Maintenance-1.0.1
Dependants 0 other packages depend on this package

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2305 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2305
Evaisa-LethalLib-1.2.0 icon
Evaisa-LethalLib

Personal modding tools for Lethal Company

Preferred version: 1.2.0

README

Ship Maintenance

Keep the ship maintained to save on moon travel. Work takes time, makes noise, and exposes the crew to the dangers outside. Ignoring maintenance only loses the discount: travel never costs more than its normal fare.

All players need this mod and its dependencies. This is a separate mod from Ship Comms and does not require it.

Service locations

System Location What to do
Left engine Exterior access panel beside the rear left engine Hold the interact button to repair; no item required.
Right engine Exterior access panel beside the rear right engine Hold the interact button to repair; no item required.
Door mechanism Outside beside the ship entrance Hold the interact button to service; no item required.
Roof electrical Panel on the ship roof Hold a Maintenance fuse and hold interact to replace it.
Oil system Separate fill port on the rear ship wall, between the engines Hold a Maintenance oil can and hold interact to refill.

The oil port is separate from the engine repair panels. Refilling oil does not repair the engines; repairing an engine does not refill oil.

Regular service takes 8 seconds of holding the interact button (E by default) while standing nearby. Release it, move away, switch the required supply, or die and the job stops. Supplies are consumed only after completion. A completed service restores that system to 100%.

Normal maintenance requires landing. Work makes mechanical noise that can attract Eyeless Dogs, even if a player mutes their own maintenance audio.

Type maintenance or maint in the terminal for condition, savings, and instructions. Buy maintenance-oil for 5 credits and maintenance-fuse for 8 credits. These arrive in the regular item dropship.

Travel savings and wear

  • A new ship starts at 100% condition.
  • The average condition of all five systems determines the travel discount: up to 25% at full condition.
  • Each completed visit to a moon with a day/night timer removes 18 condition from every system. Time spent in orbit does not cause wear. The Company visit does not cause routine wear.
  • Free moons remain free. Paid fares round up to whole credits, with a minimum of one credit.
  • Condition and apparatus ownership are saved with the host's normal ship inventory save. Getting fired resets maintenance with the ship.

The route confirmation displays the discounted fare. A moon catalog supplied by another mod may still display the original fare. Select a moon again if the host rejects an outdated quote. Mods that bypass the normal terminal routing/payment flow may need a compatibility patch.

Apparatus boost

A socket inside the ship, near the entrance, accepts a fresh, undocked apparatus. Hold it and hold interact at the socket for two seconds. Loading consumes the apparatus and stores its charge.

The next successful paid route receives an additional 80% off the maintenance-adjusted fare. Free routes, canceled confirmations, and failed purchases preserve the charge. Only one charge can be loaded at a time.

After the journey, a Spent apparatus appears inside at the socket. It is worth 25% of the original apparatus's actual scrap value, rounded down, and can be sold as scrap. It cannot be reinserted. With the defaults, a 700-credit route costs 525 at full maintenance, or 105 with a charged apparatus.

Hazard damage

Lightning striking on or near the ship and nearby explosions damage the nearest maintenance component. Defaults are 35 condition for a direct lightning impact and 25 condition for a direct explosion, decreasing with distance from the ship. Damage interrupts work on that component.

This covers vanilla mines, Old Bird missiles, and other effects that use the game's Landmine.SpawnExplosion method. Modded hazards with separate damage systems are not automatically detected. Damage affects maintenance condition and travel savings; it does not disable the vanilla door or stop the ship from flying.

Configuration

After the first modded launch, edit BepInEx/config/sockpoop.shipmaintenance.cfg. Restart the lobby after changes. The host controls gameplay values and service locations; clients receive them automatically. ServiceVolume is local.

Section Setting Default
Economy MaximumMaintenanceDiscount 25%
Maintenance WearPerDay 18
Maintenance ServiceSeconds 8 seconds
Maintenance AllowServiceInOrbit false
Maintenance WorkNoiseRange 26 metres
Supplies OilCanCost 5 credits
Supplies FuseCost 8 credits
Apparatus NextPaidTripDiscount 80% additional
Apparatus SpentSaleValuePercent 25%
Damage EnableHazardDamage true
Damage LightningConditionLoss 35
Damage ExplosionConditionLoss 25
Audio ServiceVolume 0.7

Each of the six panels/sockets has a configurable ship-local position under Panel positions, for use with ship layout mods. The default positions were checked against the installed vanilla ship mesh. They do not automatically adapt to replacement ship models.

Installation and validation

Import the Thunderstore ZIP as a local mod or install the package through Thunderstore after publication. Required dependencies: BepInExPack 5.4.2305 and LethalLib 1.2.0 or compatible later versions. Every player should use the same Ship Maintenance version.

Built against Lethal Company v81. The release compiles with zero warnings/errors and has automated tests for maintenance, pricing, apparatus ownership, saved state, hazard damage, and interrupted service. It has not been tested in-game or in a live multiplayer lobby.

Code, models, icon, and sound effects are original and included under the MIT license. Development was AI-assisted. No game assemblies or decompiled game code are distributed.

Building from source

With a .NET 10 SDK and local copies of the game, BepInEx, and LethalLib:

./build.ps1 -GameDir 'YOUR_GAME_FOLDER' -ProfileDir 'YOUR_THUNDERSTORE_PROFILE'
dotnet run --project tests/Tests.csproj -c Release

The plugin targets the game's netstandard2.1/Mono runtime. Tests are a separate headless .NET executable and do not start the game. Packaging follows the Thunderstore package requirements.