mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-25 16:45:42 +00:00
* Refactor cult dagger rune drawing and null rod rune clearing into components + minor rune / blood magic tweaks (#62918) The act of inscribing runes, anchoring / unanchoring cult structures, deconstructing cult girders, and purging cultists of holy water have all been moved off of the cult dagger itself and onto a component, cult_ritual_item. The act of destroying a cult rune or heretic rune with the null rod have been moved off of their respective items and onto the nullrod itself. Added a signal, COMSIG_ITEM_ATTACK_EFFECT, for the above purposes. Various cult spells and dagger interactions have had their code improved slightly. * Refactor cult dagger rune drawing and null rod rune clearing into components + minor rune / blood magic tweaks Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.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.