Skip to content

Commit

Permalink
Export barcodes show on packages (tgstation#82067)
Browse files Browse the repository at this point in the history
## About The Pull Request

Fixes the overlay for package barcodes. Updates the examine text with
hints.


![image](https://github.com/tgstation/tgstation/assets/83487515/52795ae5-f997-4b53-8354-cf38f8beb40e)

## Why It's Good For The Game

You can see the barcode on the package to know which go on the shuttle.

## Changelog

:cl: LT3
fix: Export barcodes are visible on wrapped packages
/:cl:
  • Loading branch information
lessthnthree authored Mar 18, 2024
1 parent de83cbe commit a6178c5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions code/modules/recycling/sortingmachinery.dm
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@
. = ..()
if(note)
if(!in_range(user, src))
. += "There's a [note.name] attached to it. You can't read it from here."
. += span_info("There's a [EXAMINE_HINT(note.name)] attached to it. You can't read it from here.")
else
. += "There's a [note.name] attached to it..."
. += span_info("There's a [EXAMINE_HINT(note.name)] attached to it...")
. += note.examine(user)
if(sticker)
. += "There's a barcode attached to the side."
. += span_notice("There's a [EXAMINE_HINT("barcode")] attached to the side. The package is marked for [EXAMINE_HINT("export.")]")
if(sort_tag)
. += "There's a sorting tag with the destination set to [GLOB.TAGGERLOCATIONS[sort_tag]]."
. += span_notice("There's a [EXAMINE_HINT("sorting tag")] with the destination set to [EXAMINE_HINT("[GLOB.TAGGERLOCATIONS[sort_tag]].")]")

/obj/item/delivery/proc/disposal_handling(disposal_source, obj/structure/disposalholder/disposal_holder, obj/machinery/disposal/disposal_machine, hasmob)
SIGNAL_HANDLER
Expand Down Expand Up @@ -102,7 +102,7 @@
if(note)
. += "[base_icon_state]_note"
if(sticker)
. += "[base_icon_state]_tag"
. += "[base_icon_state]_barcode"

/obj/item/delivery/attackby(obj/item/item, mob/user, params)
if(istype(item, /obj/item/dest_tagger))
Expand Down
Binary file modified icons/obj/storage/wrapping.dmi
Binary file not shown.

0 comments on commit a6178c5

Please sign in to comment.