Create

Bigger Stacks

  • The Last Plague: Blight — Bigger Stacks
  • The Last Plague: Blight — Bigger Stacks
  • The Last Plague: Blight — Bigger Stacks
Author:
Flusk
Size:
2.46 kB
Date:
June 21, 2025, 09:07 AM
Downloads:
61
10 / 10
No one has rated the file yet.

The mod increases the maximum stack size of items in the inventory to 999, simplifying inventory management and reducing the need for frequent sorting.

Attention! Test on a non-primary save!

Technical details:

Basics:

  • Created as a plugin for BepInEx (IL2CPP version).
  • Uses Harmony to modify the game's source code.

Modified method:

  • Patches the InventorySlot.SetMaxStackAmount method to override the stack limit (maxStackSizeOverride).
  • The value 999 is set via reflection, since the maxStackSizeOverride field is private.

Error handling:

  • Logs errors to the console if changes cannot be applied.

Installation:

  • Requires BepInEx for a Unity game with IL2CPP. Download link HERE.
  • Place the .dll file into BepInEx/plugins.

Compatibility:

  • Works only with The Last Plague (TLP).
  • May conflict with other mods that modify InventorySlot.

Source code:

Written in C#, uses:

  • Il2CppInterop for working with IL2CPP code.
  • HarmonyLib for non-destructive patching.

Logging:

  • On launch, outputs the message "BiggerStacksPlugin loaded" to the BepInEx log. Note: Reflection is used to modify private fields, which may be unstable after game updates.

Useful links:

Comments 0