mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-20 23:21:10 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user