Merge pull request #3305 from CHOMPStation2/upstream-merge-11760

[MIRROR] Makes Chem Storage list alphabetical
This commit is contained in:
Nadyr
2021-12-11 18:25:25 -05:00
committed by GitHub
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -95,3 +95,6 @@
///Species have sort_hint they self-generate to hint themselves into groups. After that, alphabetical.
/proc/cmp_species(datum/species/A, datum/species/B)
return A.sort_hint == B.sort_hint ? sorttext("[B.name]","[A.name]") : A.sort_hint - B.sort_hint
/proc/cmp_stored_item_name(datum/stored_item/A, datum/stored_item/B)
return sorttext(B.item_name, A.item_name)
@@ -112,6 +112,7 @@
user.remove_from_mob(O)
stock(O)
user.visible_message("<span class='notice'>[user] has added \the [O] to \the [src].</span>", "<span class='notice'>You add \the [O] to \the [src].</span>")
sortTim(item_records, /proc/cmp_stored_item_name)
else if(istype(O, /obj/item/weapon/storage/bag))
var/obj/item/weapon/storage/bag/P = O