mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 11:37:40 +01:00
Inspector - IAA Stare, Alt-Title, and a Station Report (#29487)
* Inspector alt title and gaze * Clipboard * Apply suggestions from code review Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> Signed-off-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com> * Reduces duplicate code --------- Signed-off-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com> Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>
This commit is contained in:
co-authored by
Burzah
parent
f967158c0a
commit
e5a08230ee
@@ -908,6 +908,18 @@ GLOBAL_LIST_INIT(slot_equipment_priority, list( \
|
||||
onclose(usr, "[name]")
|
||||
if(href_list["flavor_change"])
|
||||
update_flavor_text()
|
||||
if(href_list["station_report"])
|
||||
var/obj/item/clipboard/station_report/report = GLOB.station_report
|
||||
if(!istype(report))
|
||||
to_chat(src, "<span class='notice'>Nobody wrote a station report this shift!</span>")
|
||||
else if(!report.toppaper)
|
||||
to_chat(src, "<span class='notice'>Nobody wrote a station report this shift!</span>")
|
||||
else if(istype(report.toppaper, /obj/item/paper_bundle))
|
||||
var/obj/item/paper_bundle/report_page = report.toppaper
|
||||
report_page.show_content(src)
|
||||
else if(istype(report.toppaper, /obj/item/paper))
|
||||
var/obj/item/paper/report_page = report.toppaper
|
||||
report_page.show_content(src)
|
||||
|
||||
if(usr != src)
|
||||
return TRUE
|
||||
|
||||
Reference in New Issue
Block a user