Files
Bubberstation/code/game/atom/atom_merger.dm
Emmett Gaines eedb505af0 Splits up most of atoms.dm (#79743)
No code changes, just a bunch of moved code to reduce the size of the
main atoms file. Took it from about 2.2k lines to under 1k. Also a
couple of docs changes where it was incorrect.
2023-11-16 23:01:01 +00:00

15 lines
490 B
Plaintext

/atom
///Holds merger groups currently active on the atom. Do not access directly, use GetMergeGroup() instead.
var/list/datum/merger/mergers
/// Gets a merger datum representing the connected blob of objects in the allowed_types argument
/atom/proc/GetMergeGroup(id, list/allowed_types)
RETURN_TYPE(/datum/merger)
var/datum/merger/candidate
if(mergers)
candidate = mergers[id]
if(!candidate)
new /datum/merger(id, allowed_types, src)
candidate = mergers[id]
return candidate