mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-27 01:21:30 +00:00
* Fix radiation examine message ordering (#55696) When examining radioactive game objects, the message about their radiation levels, such as "The air around the screwdriver feels warm", or "The air around the uranium statue feels warm, and it hurts to look at." will now be printed after the main body of the examine text. The examine signal was being used to trigger `to_chat` calls, causing the radiation message to be sent before the main examine text, "That's a large statue of a pig." The pronouns of the text have also been tweaked, so examining the radiation of a pair of gloves, or a man will produce appropriate messages. * Fix radiation examine message ordering Co-authored-by: coiax <yellowbounder@gmail.com>
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.