mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-07-13 17:23:44 +01:00
Merge pull request #3305 from CHOMPStation2/upstream-merge-11760
[MIRROR] Makes Chem Storage list alphabetical
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user