Lethal Company
Install with App

Details

Latest version
0.1.0
Last Updated
First Uploaded
Downloads
53
Likes
0
Size
106KB
Dependants

CounterFix4Bat 0.1.0

A tiny Lethal Company plugin that fixes the end-of-day results screen when QuotaOverhaul is installed with Despawn Props Patch enabled.

Why

The left "scrap collected" number is computed on the host as today's new ship scrap. Vanilla then marks surviving ship items with scrapPersistedThroughRounds = true inside RoundManager.DespawnPropsAtEndOfRound, so the next day only counts the new haul.

QuotaOverhaul's Despawn Props Patch skips that vanilla method so it can change scrap-loss-on-wipe. Its replacement never sets the persist flag. After day 1, every later results screen counts all stored ship scrap.

GeneralImprovements' Daily Profit monitor already shows today's haul correctly. This plugin does not change that monitor.

What it does

After DespawnPropsAtEndOfRound finishes (vanilla or QuotaOverhaul), CounterFix4Bat marks remaining aboard items as persisted through rounds. It never despawns or moves items, and it does not change QuotaOverhaul's no-scrap-loss-on-wipe behavior.

It has a soft dependency on QuotaOverhaul only for load order. It is safe to run without QuotaOverhaul: vanilla already sets the same flag, and setting it again does nothing harmful.

Host requirement

The results number is computed on the host, so the host must run this plugin. The persist flag is not a networked value. Clients may also run it so their local quota HUD treats stored scrap as old, but the results screen is decided by the host.

Install

Close Lethal Company and Thunderstore Mod Manager first. Copy CounterFix4Bat.dll into your profile's BepInEx/plugins folder. Confirm the log shows Loading [CounterFix4Bat 0.1.0].

QA

  • Test day 2 or later of a run (day 1 can already look correct).
  • After leaving a moon with someone alive, the results-screen left number should equal today's haul, approximately the Daily Profit monitor, not the ship's total stored scrap.

Author: Chonk_Zilla. Original work.

Thunderstore development is made possible with ads. Please consider making an exception to your adblock.