Non_Sleepers-Diversity_Fix icon

Diversity Fix

Unofficial compatibility patcher that makes Diversity 3.1.0 (IntegrityChaos) work on the current Lethal Company version. Private use.

Last updated 5 hours ago
Total downloads 13
Total rating 0 
Categories Mods Misc BepInEx
Dependency string Non_Sleepers-Diversity_Fix-1.0.0
Dependants 0 other packages depend on this package

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2100 icon
BepInEx-BepInExPack

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

Preferred version: 5.4.2100
IntegrityChaos-Diversity-3.1.0 icon
IntegrityChaos-Diversity

Diversity is a mod that revamps few aspects of the game. Generally the entities itself.

Preferred version: 3.1.0

README

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].