
White Knuckle
You are viewing a potentially older version of this package. View Latest Version

A library mod for White Knuckle. Provides a public API that other mods can call to register custom Trinkets (run-start modifiers, optional) and Bindings (run-start modifiers with stronger effects, optional) so they show up in the trinket/binding picker on Fresh Game start.
This mod does nothing by itself. It's a dependency for other mods.
Just install it. You'll only need it if a mod you use lists this as a dependency — Thunderstore Mod Manager will install it automatically in that case.
using TrinketAndBindingFramework;
[BepInDependency(TrinketAndBindingFramework.Plugin.GUID)]
public class MyMod : BaseUnityPlugin
{
private void Awake()
{
TrinketRegistry.Register(
id: "yourmod_my_trinket",
displayName: "My Trinket",
description: "...",
icon: yourSprite,
isBinding: false,
itemsToGrantFactory: () => new List<Item_Object> { yourItemTemplate }
);
}
}
See the source of CiCi's Climbing Axes or CiCi's Pioneer's Shotgun for working examples.