mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-07 21:33:11 +01:00
69217be201
## About The Pull Request This has been coming up in almost every PR and I'm sick of it.  Fixes it for good. Also fixes an unrelated issue, where it was previously adding the `alternate_appearance` to the cutout object instead of the mob. Then when it tried to remove it, it was trying to remove it from the mob rather than the cutout object, causing it not actually be removed. <details><summary>Still works fine</summary>   </details> ## Why It's Good For The Game Bugfix ## Changelog 🆑 fix: fixes cardboard cutouts not updating when held and using the crayon on them to change their appearance, and fixes the alt_appearance being added to the cutout instead of the mob holding it /🆑 --- EDIT: #81657 was merged before this and it introduces a new issue where the cardboard cutout does not update when you change it with a crayon while holding it. This should fix that, revised changelog.
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.