Lethal Company
You are viewing a potentially older version of this package. View Latest Version
Install with App

Details

Date Uploaded
Downloads
953
Size
12KB

Equal Interiors

Every playable moon gets the same interior pool, with equal chances for each interior. Built against Lethal Company v81 and LethalLevelLoader 1.7.13, with compatibility designed around JLL 1.10.1's existing interior callbacks.

For example, with Generic Interiors 5.2.1 and LiminalPools 1.0.17 installed, these ten interiors each have a 10% chance on every playable moon:

  • Facility
  • Haunted Mansion
  • Mineshaft
  • Storehouse
  • Bunker
  • Drains
  • Substation
  • Tower
  • Liminal Facility (Backrooms)
  • Liminal Pools

Installing another interior that registers with LethalLevelLoader automatically adds it to the shared pool. Each included interior receives weight 100, so eleven interiors would each have a 1/11 chance. Repeats are possible.

Installation

The host needs this mod. Everyone still needs compatible versions of the actual interior mods and their dependencies.

Install through Thunderstore Mod Manager or r2modman. For a downloaded ZIP, use your manager's local-mod import, or copy BepInEx/plugins/EqualInteriors/EqualInteriors.dll into that folder inside the host's profile. Restart the game after installation.

Required: BepInEx 5 and LethalLevelLoader 1.7.13 or newer. JLL is supported as an optional dependency; its doors, elevators, components, generation callbacks, and other interior scripts continue through the existing generation pipeline.

To remove the mod, remove its EqualInteriors.dll and restart. Its configuration file can be left in place or deleted.

Configuration

On first launch, BepInEx creates BepInEx/config/sockpoop.equalinteriors.cfg:

[General]
Enabled = true
ExcludedInteriors = Level1FlowExtraLarge,Level1Flow3Exits
  • Enabled: Set to false to use LethalLevelLoader's original selection again.
  • ExcludedInteriors: Comma-separated display names or DungeonFlow asset names, matched without regard to case. The default excludes the extra-large and three-exit Facility variants so Facility gets one ticket. LethalLevelLoader still adjusts the selected layout's fire exits for the moon. To exclude another interior, append its name, for example ,Substation.

Restart the game after editing these settings. The host's settings control the actual roll. LethalLevelLoader's per-interior Enable Content Configuration switches can remain off: this mod replaces the final candidate list in memory. If exclusions remove everything, the mod logs a warning and keeps LethalLevelLoader's original pool.

Checking the result

On the host's ship terminal, enter simulate experimentation, simulate march, or another moon name. The example mod set above should show ten interiors at 10% each. A client without this mod may display its own original preview; the host still supplies the actual selection table.

The BepInEx log includes an [Equal Interiors] entry listing the final pool. Earlier LethalLevelLoader diagnostic entries can show the original moon-specific weights because this mod runs after that calculation.

Scope and compatibility

The mod patches DungeonManager.GetValidExtendedDungeonFlows with a Harmony postfix. It builds the pool from all valid registered dungeon assets, so an interior with zero original weight can appear on every playable moon. It does not rewrite the original matching properties or consume random numbers. LethalLevelLoader continues distributing the host's candidate list and weights, and the game continues choosing the interior and layout from the map seed.

The Company and destinations without dungeon generation retain their normal behavior. This covers moons routed through LethalLevelLoader; a mod that completely replaces that loading/selection pipeline would need its own integration. Other mods that overwrite the same returned candidate list can conflict.

Equalizing eligibility does not guarantee every third-party interior can generate successfully at every moon size. The original dungeon sizing and generation rules still apply. Exclude a problematic interior if needed.

Validation

The release is compiled against the installed game, BepInEx, Harmony, and LethalLevelLoader DLLs. Its headless tests exercise the production selection policy and adapter using names extracted from the installed asset bundles: equal pools across all inspected moons, formerly absent interiors, duplicate variants, exclusions, invalid references, disabling, empty-pool fallback, stable ordering, future interiors, and terminal/landing consistency.

These checks do not substitute for a live Unity generation or multiplayer session. A live game/multiplayer test has not been performed for this release.

Building from source

Install the .NET 10 SDK, then run from the source folder:

.\build.ps1 -GameDir 'C:\Games\Lethal Company' -ProfileDir 'C:\path\to\your\mod\profile'
dotnet run --project .\tests\Tests.csproj -c Release

Change those paths for your machine. The build uses the game's managed assemblies and your profile's BepInEx/LLL references; it does not download or redistribute game/library binaries. The resulting DLL is EqualInteriors/bin/Release/netstandard2.1/EqualInteriors.dll.

Upstream packages: LethalLevelLoader, JLL.

This plugin was created using AI-assisted development. The validation scope is described above.

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