Modding:Harmony: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 10: Line 10:
That said, there do remain some situations in which Harmony patches are required in order to affect certain functionality. In these cases, Postfix patches tend to be the most compatibility friendly, followed by non-blocking Prefix patches. Prefix patches that prevent the main function from running or Transpiler Patches that modify the IL Code of a function are often more likely to conflict with other mods and should be avoided unless they are the only option.
That said, there do remain some situations in which Harmony patches are required in order to affect certain functionality. In these cases, Postfix patches tend to be the most compatibility friendly, followed by non-blocking Prefix patches. Prefix patches that prevent the main function from running or Transpiler Patches that modify the IL Code of a function are often more likely to conflict with other mods and should be avoided unless they are the only option.


In general, the Caves of Qud development team prefers data driven behavior, and would be likely to entertain adding a better hook for your mod to use than a Harmony patch.  Specifically, reach out to <code>@gnarf#1742</code> or <code>armithaig#5139</code> in <code>#modding</code> on the [https://discord.gg/cavesofqud Official Discord Server].
In general, the Caves of Qud development team prefers data driven behavior, and would be likely to entertain adding a better hook for your mod to use than a Harmony patch.  Specifically, reach out to <code>@gnarf#1742</code> or <code>@armithaig#5139</code> in <code>#modding</code> on the [https://discord.gg/cavesofqud Official Discord Server].


== Example: Chaotic-Colored Message Text ==
== Example: Chaotic-Colored Message Text ==