akarnokd / ThePlanetCrafterMods

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

Extended "No Snapping" feature to rooms and extended original functionality #60

Closed lainverse closed 1 year ago

lainverse commented 1 year ago

Previous iteration worked only on objects like stairs and foundations. Now should affect rooms too.

Modified original "No Build Constraints" feature:

First since there's no need to call original check when result is discarded. It still called when feature is disabled.

Second because it let you build intersecting rooms and depending on the object which end up inside and placement of the rooms it might become indestructible.

Note: If you enable "No Snapping" while building a new room and snapping icon is on screen it will remain on screen until you build it, cancel building or disable "No Snapping" and point away. I may fix this later. Also, it seems like passages between rooms generated on proximity, so you can build two rooms at a short distance away from each other and even not on the same level and yet there'll be a passage between them despite a gap.