Shockah / Nickel

A modding API / mod loader for the game Cobalt Core.
Apache License 2.0
3 stars 5 forks source link

Rewrite artifact hooks #92

Closed Shockah closed 2 months ago

Shockah commented 2 months ago

The current implementation of artifact hooks seems to be cursed in one way or another, breaking any captured variables.

Rewrite artifact hooks to generate a simple Artifact subclass, which gets its methods overridden with Harmony whenever a mod tries to hook it, emitting new IL that calls each delegate (Harmony-esque).

Shockah commented 2 months ago

The rewrite is no longer required, the issue has been fixed.