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:
PollardTheDragon
2025-06-11 17:03:17 +00:00
committed by GitHub
co-authored by Burzah
parent f967158c0a
commit e5a08230ee
9 changed files with 73 additions and 1 deletions
+12
View File
@@ -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
+13
View File
@@ -1,3 +1,5 @@
GLOBAL_VAR(station_report) // Variable to save the station report
#define PAPERWORK 1
#define PHOTO 2
@@ -157,5 +159,16 @@
update_icon()
showClipboard(usr)
/obj/item/clipboard/station_report
name = "station report clipboard"
desc = "An important clipboard used to make reports on the station status, deliverable to Nanotrasen at the end of the shift. The top paper is the one formally inspected."
/obj/item/clipboard/station_report/Initialize(mapload)
. = ..()
GLOB.station_report = src
var/start_paper = new /obj/item/paper(src)
toppaper = start_paper
update_icon()
#undef PAPERWORK
#undef PHOTO