PeasantFoundry / Mechtrauma

Mechtrauma for Barotrauma
13 stars 12 forks source link

Central Pumping and water gates #64

Closed Torca2001 closed 1 year ago

Torca2001 commented 1 year ago

44 Implemented a functional central pumping system that requires water gates to function.

Transitioned existing Mechtrauma pumps to use the new water gate system that prevents cheesing of the water connection

Water gates that contain items will cause them to be blocked and prevent them from functioning.

Changes were made to some pump connections and gates, existing subs will have to be checked

Also appears that #61 is fixed with this

Torca2001 commented 1 year ago

Also fixed pumps set_state pins fighting with the xml causing the pump to constantly turn on or off. Fixed the backup batteries in pumps to only draw power when the grid fails to meet the min voltage requirement Modified the pump gui to indicate it is using the battery by rapidly flashing the power indicator. (Possibly change the power colour but that requires creating a new sprite for it)

TBN-MapleWheels commented 1 year ago

Merged. Requires some cleanup that's easier to do post-merge than pre-merge. Note: Does not fix #61 fundamentally as it's not a flaw with the pumping system component but the Reflection lookup in Luatrama that requires a custom solution using Modding TK..