Files
Bubberstation/code/datums/components
Tim 996c06d519 Fix emag not working on secure briefcases and safes (#88824)
## About The Pull Request
I swear this functionality existed a while back and got lost due to a
refactor.

Regardless both secure briefcases and safes can now be emagged if either
are locked. I also adjusted the secure briefcase sprite to give it the
glowing green/red button near the handle to indicate when it's locked.
The emag icon is just a few black pixels.

Edit - Turns out I was right and not crazy! Git blame shows this feature
already existing but it got lost when storage components got refactored.

## Why It's Good For The Game
Locks must be broken!

## Changelog
🆑
fix: Fix emag not working on secure briefcases and safes
image: Tweak secure briefcases sprite to have glowing red/green pixels
for lock. Added broken black pixels to signal briefcase/safe are
emagged.
/🆑

---------

Co-authored-by: Zephyr <12817816+ZephyrTFA@users.noreply.github.com>
2025-01-13 08:50:03 +13:00
..
2024-10-09 02:03:50 +02:00
2024-05-16 19:54:00 -07:00
2025-01-02 14:15:23 +00:00
2024-05-16 19:54:00 -07:00
2024-08-21 17:07:02 +12:00
2024-07-15 16:28:41 +01:00
2024-10-09 02:03:50 +02:00
2024-10-07 13:34:36 +02:00
2024-05-16 19:54:00 -07:00

Datum Component System (DCS)

Concept

Loosely adapted from /vg/. This is an entity component system for adding behaviours to datums when inheritance doesn't quite cut it. By using signals and events instead of direct inheritance, you can inject behaviours without hacky overloads. It requires a different method of thinking, but is not hard to use correctly. If a behaviour can have application across more than one thing. Make it generic, make it a component. Atom/mob/obj event? Give it a signal, and forward its arguments with a SendSignal() call. Now every component that want's to can also know about this happening.

HackMD page for an introduction to the system as a whole.

See/Define signals and their arguments in __DEFINES\components.dm