Files
Bubberstation/code/modules
lessthanthree 1c0c0805a2 Fixes the tram's schrodinger-like power consumption (#81122)
## About The Pull Request

Fixes https://github.com/tgstation/tgstation/issues/81106. The tram's
dynamic power use does not get recalculated when leaving an area because
the powernet between areas is made for static loads, This leads to APCs
being drained quickly consuming too much power, or consuming negative
energy leading to an APC being charged.

The amount of times use_power is called on tram crossing signals during
processing also leads to unexpected power consumption.

This moves tram power to a rectifier machinery object in each area,
controlled by signals from the tram. Tram crossing signals are fixed in
how they consume power, changing between power use states instead of
consuming during processing, and moved from the transport subsystem to
fastprocess because they don't need to be running at 20fps.

## Why It's Good For The Game

Tram draining an APC in a matter of seconds is bad. Tram having negative
power draw at other times is also bad.


![image](https://github.com/tgstation/tgstation/assets/83487515/e49cbabe-1b21-4af2-b940-c3ab9fcdbcda)

## Changelog

🆑 LT3
fix: Tram power consumption will no longer will randomly drain APCs
fix: Tram power moved to area based rectifiers
/🆑

---------

Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com>
2024-01-31 00:05:58 +01:00
..
2024-01-25 09:07:53 -05:00
2024-01-22 08:47:52 +01:00
2024-01-17 04:37:03 -05:00
2024-01-28 18:54:37 +01:00
2024-01-17 04:47:39 -05:00
2024-01-28 18:54:37 +01:00
2024-01-17 04:37:03 -05:00