Goonstation 13 - Modules - Types

code/modules/worldgen/prefab/mapPrefab.dm

/datum/mapPrefabIf 1 we will try to always place thing thing no matter what. If -1 there's no limit.
/proc/get_map_prefabs Gets all prefabs of a given type.
/proc/pick_map_prefab Picks a random prefab from given prefab type. Filters the prefabs picked based on the given tags. Choice is performed by a weighted random choice based on the prefab's probability. Prefabs marked as required are always picked first.