Files
Bubberstation/code/datums/components
MrMelbert c16ae8fe78 Use any item as a prosthetic arm, what's the worst that could happen? (#91573)
![image](https://github.com/user-attachments/assets/84290f87-8750-4972-8ef1-c22d0cde35a4)

Makes the chainsaw arm code generic, so you can attach any normal or
bulky sized item as an arm

Impl. detail:

Items-as-arms just use inhand sprites unless it has
`/datum/element/prosthetic_icon`. Currently used for chainsaws as the
only item with an implanted sprite.

Chainsaw arm nullrod now fully replaces the arm rather than being a
nodrop item.

When surgically adding any non-bodypart item, applying the item will
result in a loose fitting, and it might fall off on attack. The
following step (tape/suture) removes the fall chance.

Chainsaw arms are funny, but why stop at chainsaws beyond it being an
Evil Dead reference?

🆑 Melbert
add: Any normal or bulky sized item can be used as a prosthetic arm,
instead of just chainsaws.
/🆑
2025-06-21 22:35:58 -04:00
..
2025-06-21 22:21:50 -04:00
2025-05-15 16:10:48 -04:00
2025-06-15 15:52:11 -04:00
2025-04-14 15:51:24 -04:00
2025-01-11 11:38:00 -08:00
2025-03-12 16:43:07 -04:00
2025-01-22 20:50:07 -07:00
2025-01-28 03:12:59 +01:00
2025-06-04 20:01:33 -04:00
2025-05-08 19:21:08 -04: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