PDA sorting fixes & tweaks (#2760)

changes:

Fixed the PDA list not being sorted.
PDAs now show if they have a pen in them or not in their examine text.
PDAs can be ctrl-shift-clicked to remove their pen.
Added a proc designed to simplify common mob sanity checks; see comments for documentation.
This commit is contained in:
Lohikar
2017-06-18 17:26:24 -05:00
committed by skull132
parent 618c227107
commit fa5a8eecd9
5 changed files with 161 additions and 82 deletions

View File

@@ -83,3 +83,6 @@ var/cmp_field = "name"
var/a_score = LAZYLEN(A.items) + LAZYLEN(A.reagents) + LAZYLEN(A.fruit)
var/b_score = LAZYLEN(B.items) + LAZYLEN(B.reagents) + LAZYLEN(B.fruit)
return b_score - a_score
/proc/cmp_pda(obj/item/device/pda/A, obj/item/device/pda/B)
return sorttext(B.owner, A.owner)