Files
Bubberstation/code/modules/research/techweb
Hatterhat d60765bf89 Portable SMESes (as "inspired" by /vg/station) (#85732)
## About The Pull Request

![image](https://github.com/user-attachments/assets/7fcedc40-a24f-43cc-aeda-7ac43af6ef11)

Adds the **portable power storage unit** (5 megacells and cable) and the
**power connector** (1 capacitor and cable), a two-part system for power
storage that, together, are functionally identical to a standard SMES
(with the ability to switch out the part that actually holds power).
It's on the same research node as the SMES itself.

Original idea and power connector sprite taken and slightly modified
from vgstation-coders/vgstation13#4555.

**The power connector is useless without the portable SMES and
vice-versa.**
<details><summary>How does it work?</summary>

The **power connector** (on the left) is set up like any other regular
SMES, but is functionally useless without a connected power unit. The
capacitor decides maximum power transfer rate.

The **portable power storage unit** (in the middle) is the part that
actually holds power, taking five megacells (power capacity scales
appropriate to cell capacity). It's functionally useless without a
connected port, as it can't interact with powernets in any way on its
own.

To actually use both of these, after wiring up the power connector
appropriately (as any other SMES), wrench the portable storage unit to
the connector; the connector acts like a regular SMES, charging and
discharging the portable unit in lieu of charging/discharging itself. If
necessary, you can disconnect the portable unit afterwards, and bring it
elsewhere with an assembled power connector.

Disconnecting the portable storage unit in the same way you connected it
(with a wrench) disables input and output on the connector, requiring
the user to re-enable the controls after connecting another portable
storage unit.
</details>

Also breaks up SMES attackby into different tool_acts. 

## Why It's Good For The Game
I think it could be neat for things like Lavaland field bases or
player-built mini-stations; instead of building power generation
on-site, you could charge a portable SMES and bring it over. Or you
could set it up as a power reserve in the event engineering explodes.
Sure, you could argue that someone could just build and rebuild a SMES
or switch out the cells in it a bunch, but lugging around a whole thing
feels cooler.

## Changelog

🆑
add: Portable power storage units and power connectors! Under the same
research node as regular power storage units, and not mapped in
anywhere. Build a connector and portable unit, wire the connector like a
regular SMES, wrench the portable unit onto the connector, unwrench as
needed.
code: SMES attackby was broken up into several tool_acts instead of a
big attackby chain. If something stops working in regards to using tools
on SMESes, please file a bug report.
/🆑

---------

Co-authored-by: Hatterhat <Hatterhat@users.noreply.github.com>
Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com>
2024-10-02 11:04:46 +00:00
..