code/__HELPERS/cmp.dm
/proc/cmp_bodypart_by_body_part_asc | Orders bodyparts by their body_part value, ascending. |
---|---|
/proc/cmp_port_order_asc | Orders by integrated circuit weight |
/proc/cmp_uplink_category_desc | Orders by uplink category weight |
/proc/cmp_crafting_req_priority | Sorts crafting recipe requirements before the crafting recipe is inserted into GLOB.crafting_recipes |
/proc/cmp_heretic_knowledge | Orders heretic knowledge by priority |
/proc/cmp_assoc_list_name | Passed a list of assoc lists, sorts them by the list's "name" keys. |
/proc/cmp_mob_health | Orders mobs by health |
/proc/cmp_fish_fluid | Orders fish types following this order (freshwater -> saltwater -> anadromous -> sulphuric water -> any water -> air) If both share the same required fluid type, they'll be ordered by name instead. |