Lethal Company
Install with App

Details

Latest version
1.0.0
Last Updated
First Uploaded
Downloads
726
Likes
0
Size
15KB
Dependants

Categories

Diversity Fix 1.0.0 (unofficial)

Small BepInEx preloader patcher. On game start, before plugins load, it finds Diversity Remastered.dll (Diversity 3.1.0 by IntegrityChaos, https://thunderstore.io/c/lethal-company/p/IntegrityChaos/Diversity/) and, only if needed, rewrites five references to game code that changed in newer Lethal Company versions:

  1. PlayerControllerB.KillPlayer - passes the new setOverrideDropItems argument with the game default (false).
  2. PlayerControllerB.HasLineOfSightToPosition - passes the new layerMask argument with the game default (-1).
  3. new SpawnableEnemyWithRarity() - uses the new (EnemyType, int) constructor.
  4. DropAllHeldItemsServerRpc() (removed) - replaced by DropAllHeldItemsAndSyncNonexact().
  5. DunGen.Door - type moved from Assembly-CSharp to the DunGen assembly.

No gameplay changes. Diversity is licensed CC BY-NC-SA 4.0; this patch is shared non-commercially under the same terms. Check the BepInEx log for lines starting with [DiversityFix].

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