mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-10 17:52:36 +00:00
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.
15 lines
490 B
Plaintext
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
|