akarnokd / ThePlanetCrafterMods

BepInEx+Harmony mods for the Unity/Steam game The Planet Crafter
Apache License 2.0
44 stars 29 forks source link

Reworked the plugin for better overall performance. #7

Closed WildCard65 closed 2 years ago

WildCard65 commented 2 years ago

This plugin will no longer constantly iterate the game for rockets, instead it'll do a one time iteration for the relevant inventories, creating them prematurely if needed.

akarnokd commented 2 years ago

See #8.

akarnokd commented 2 years ago

After careful consideration, relying on the hidden, and otherwise unused, inventory is risky as it may eventually be removed.

Instead, the idea is to scan for rockets upon start, then hook into the launch button and update the rocket counts right there.