This mod enhances inventory management by allowing players to carry more items without being restricted by two-handed item requirements.
🚀 35,000+ Downloads on Thunderstore!
View on Thunderstore
namespace TLTwoHand
{
[BepInPlugin("TL.TLTwoHand", "TLTwoHand", "1.0.0.0")]
public class TLModBase : BaseUnityPlugin
{
private const string modGUID = "TL.TLTwoHand";
private const string modName = "TLTwoHand";
private const string modVersion = "1.0.0.0";
private readonly Harmony harmony = new Harmony("TL.TLTwoHand");
private static TLModBase instance;
internal ManualLogSource nls;
private void Awake()
{
if ((Object)(object)instance == (Object)null)
{
instance = this;
}
nls = Logger.CreateLogSource("TL.TLTwoHand");
harmony.PatchAll(typeof(TLModBase));
harmony.PatchAll(typeof(PlayerControllerBPatch));
}
}
}
namespace TLTwoHand.Patches
{
[HarmonyPatch(typeof(PlayerControllerB))]
internal class PlayerControllerBPatch
{
[HarmonyPatch("Update")]
[HarmonyPostfix]
private static void TwoItemPatch(ref bool ___twoHanded)
{
___twoHanded = false;
}
}
}