Files
Bubberstation/code/datums/components
SkyratBot 5afa528134 [MIRROR] Aquariums now influence area beauty based on their contents. (#28703)
* Aquariums now influence area beauty based on their contents. (#84677)

## About The Pull Request
Aquariums now have a beauty element based on their contents. Props give
a fixed beauty value, while for fish it depends on whether they're alive
or not. Some fishes have a better score than others. A few, like the
ratfish, even have negative beauty.

Mobs with the morbid trait now get a positive moodlet when admiring an
aquarium full of dead fish, and a negative one when fish are alive.

Also, this brings a few improvements to bits of aquarium code. Namely
the removal of a GetComponent call and a few balloon alert calls.

## Why It's Good For The Game
Aquariums can be quite decorative at times.

## Changelog

🆑
add: Aquariums now influence the beauty score of an area based on their
contents.
add: Morbid people now get a positive moodlet when admiring an aquarium
full of dead fish, and a negative one when fish are alive.
/🆑

* Aquariums now influence area beauty based on their contents.

---------

Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com>
2024-07-08 14:49:34 +05:30
..
2024-05-23 02:37:43 +02:00
2024-04-26 01:22:24 +02:00
2024-05-18 11:40:59 -04:00
2024-02-20 01:00:11 +01:00
2024-04-26 01:22:24 +02:00
2024-04-26 01:22:24 +02:00
2024-04-29 21:15:33 +02:00
2024-04-29 21:15:33 +02:00
2024-04-28 22:24:01 +02:00
2024-04-23 20:43:45 +02:00
2024-04-29 21:15:33 +02:00
2024-04-26 01:22:24 +02:00
2024-05-18 11:40:59 -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 it's 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