mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-04 11:45:10 +01:00
be6b35485d
requires #22442 This PR adds the new Psi-Protect pills required by the current Lemurian Sea lore arc. They can be obtained exclusively via the psychiatric medicine selection, and are a new prescription drug marketed by Zeng-Hu Pharmaceuticals as a solution for ADPI exposure that doesn't require a more invasive implant. When taken, these pills provide 10 minutes of temporary protection from telepathy, as well as a reduction in psi-sensitivity. In the loadouts: <img width="312" height="72" alt="image" src="https://github.com/user-attachments/assets/2dc3a0bd-1d8e-4913-819b-b30fd5718d27" /> Spawning in: <img width="914" height="98" alt="image" src="https://github.com/user-attachments/assets/79223fe0-56f3-4fbc-9a1f-7afdaa87baa8" /> Messages playing when taking the pill <img width="602" height="55" alt="image" src="https://github.com/user-attachments/assets/2175b5bd-3b7f-47ee-957d-54154bc27197" /> Verifying in testing that the component correctly attaches <img width="504" height="278" alt="image" src="https://github.com/user-attachments/assets/f65a2d48-0337-47d2-ad79-fce548a07ab9" /> And verifying that component TTD is set, as well as Signals are being correctly registered. <img width="512" height="692" alt="image" src="https://github.com/user-attachments/assets/31416703-1c59-47f7-bc80-36329d43905a" />
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 it's arguments with a SendSignal() call. Now every component that want's to can also know about this happening.
See this thread for an introduction to the system as a whole.