Files
Bubberstation/code/game/atom/atom_merger.dm
SkyratBot e5e5130696 [MIRROR] Splits up most of atoms.dm [MDB IGNORE] (#25055)
* Splits up most of atoms.dm

* Fix diffs

* Update tgstation.dme

---------

Co-authored-by: Emmett Gaines <ninjanomnom@gmail.com>
Co-authored-by: Giz <13398309+vinylspiders@users.noreply.github.com>
2023-11-16 18:50:40 -05: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