A mod for Silksong that adds new combo tool types to the game.
This section is intended for developers of mods that add custom tools.
If you want to add a pink tool, you need to first decide if it should have limited uses (like red tools) or unlimited uses (meaning that it would consume silk like a skill).
For a limited use skill, set its default type to red (1). For an unlimited use skill, set its default type to skill (0).
Then, apply the following postfix, replacing the string with the internal ID of your custom tool:
[HarmonyPostfix]
[HarmonyPatch(typeof(ExtraToolColors.ExtraToolColors), nameof(ExtraToolColors.ExtraToolColors.GetChangedTools))]
public static void GetChangedToolsPostfix(ref Dictionary<string, ToolItemType> __result)
{
string toolName = "INSERT_INTERNAL_TOOL_NAME_HERE";
if (__result.ContainsKey(toolName))
__result[toolName] = ExtraToolColors.ExtraToolColors.Pink;
else
__result.Add(toolName, ExtraToolColors.ExtraToolColors.Pink);
}