Files
Bubberstation/code/__DEFINES
MrMelbert 8c1e35e1c0 Refactors mind language holders into non-existent, fixes new languages being deleted on species swap + tests (#76612)
## About The Pull Request

This PR refactors mind language holders into non-existence

As a result, `update_atom_languages` is no longer necessary

Mind-bound languages are transferred via `/mind/proc/transfer_to`

Species changing no longer deletes and re-creates the mob's language
holder, allowing them to keep any languages they have.

Species languages are sourced from `LANGUAGE_SPECIES` now, meaning they
are removed when they change species. If the mob is not a human with a
species datum, these are effectively just atom level languages.

Makes a bunch of unit tests to ensure language transfer over certain
events works as intended

## Why It's Good For The Game

Mobs with minds having two independent language holders results in a
good few bugs, and simply doesn't make sense when we have sources
(`LANGUAGE_MIND`).

Instead of tracking two language holders, we can simply use sources
better and only track one.

This means that the language holder you start with is your language
holder, period. It doesn't get deleted or re-instantiated or whatever.

## Changelog

🆑 Melbert
refactor: Refactored language holders, making species changes not delete
all of your known languages
/🆑
2023-07-10 18:34:57 +00:00
..
2023-05-22 14:51:00 +12:00
2023-04-09 17:13:06 -06:00
2023-07-09 19:53:11 -04:00
2023-07-07 23:48:47 +00:00
2023-05-06 18:07:24 -07:00
2023-05-11 20:07:30 -06:00
2023-01-24 18:34:27 +00:00
2023-06-18 08:14:05 -04:00
2022-12-31 16:10:27 +01:00
2023-07-01 15:36:26 +01:00
2023-04-05 17:37:59 +01:00
2023-07-06 12:07:34 -07:00
2023-06-07 03:00:56 +00:00
2023-01-26 00:25:16 -08:00
2023-07-10 11:14:13 +02:00

This folder is full of #define statements. They are similar to constants, but must come before any code that references them, and they do not take up memory the way constants do.

The values in this folder are NOT options. They are not for hosts to play with. Some of the values are arbitrary and only need to be different from similar constants; for example, the genetic mutation numbers in genetics.dm mean nothing, but MUST be distinct.

It is wise not to touch them unless you understand what they do, where they're used, and most importantly, how to undo your changes if you screw it up.

  • Sayu