Personal crafting & Dependencies

This commit is contained in:
Chompstation Bot
2021-05-06 04:51:46 +00:00
committed by Darlantan
parent 04a8c35801
commit d7f20396de
42 changed files with 2569 additions and 386 deletions

View File

@@ -416,13 +416,9 @@ This actually tests if they have the same entries and values.
//Mergesort: any value in a list
/proc/sortList(var/list/L)
if(L.len < 2)
return L
var/middle = L.len / 2 + 1 // Copy is first,second-1
return mergeLists(sortList(L.Copy(0,middle)), sortList(L.Copy(middle))) //second parameter null = to end of list
//any value in a list
/proc/sortList(list/L, cmp=/proc/cmp_text_asc)
return sortTim(L.Copy(), cmp)
//Mergsorge: uses sortList() but uses the var's name specifically. This should probably be using mergeAtom() instead
/proc/sortNames(var/list/L)