timhjersted / tsorcRevamp

The Story of Red Cloud's Dark Souls mod, updated to TModLoader
GNU General Public License v3.0
23 stars 15 forks source link

Disable visibility of wires, even if holding a wiring item, in adventure mode #28

Closed stinky-lizard closed 2 years ago

stinky-lizard commented 2 years ago

Terraria.GameContent.UI.Settings.DrawWires will be true if the game should be drawing wires on that tick. This patches the get accessor for that property so in addition to checking all the vanilla checks it also checks if you're in adventure mode - if you are, it returns false no matter what.

Result: In Adventure Mode, wires will (read: should) never show on screen, ever. With Adventure Mode disabled, wires will show as they do in vanilla (if you aren't holding a wiring item, they still won't show).

MarfMaster commented 2 years ago

feels a bit overkill and limiting but oh well, it's future proof at least