Skip to content

Commit

Permalink
SLTs and sensors (#5392)
Browse files Browse the repository at this point in the history
  • Loading branch information
WatermelonsEverywhere authored Jun 4, 2024
1 parent c18dc3e commit 81cdea5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 3 additions & 2 deletions code/modules/clothing/clothing.dm
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,8 @@ BLIND // can't see anything
/obj/item/clothing/under/New()
..()
item_state_slots[slot_w_uniform_str] = icon_state //TODO: drop or gonna use it?
sensor_mode = 3 // All clothing on tracking by default now.
if(isOnStationLevel(src))
sensor_mode = 3 // Clothing spawning on colony levels is on tracking by default.

/obj/item/clothing/under/examine(mob/user)
..(user)
Expand Down Expand Up @@ -774,7 +775,7 @@ BLIND // can't see anything
V.show_message("[usr] sets [src.loc]'s sensors to maximum.", 1)

/obj/item/clothing/under/attackby(var/obj/item/I, var/mob/U)
if(I.get_tool_type(usr, list(QUALITY_SCREW_DRIVING), src) && ishuman(U) && !is_sharp(I)) // No setting sensors with knives!
if(I.get_tool_type(usr, list(QUALITY_SCREW_DRIVING), src) && ishuman(U))
set_sensors(U)
else
return ..()
Expand Down
6 changes: 5 additions & 1 deletion code/modules/clothing/head/helmet.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1804,7 +1804,11 @@
continue
crewmembers_recently_reported += entry["name"]
schedule_memory_cleanup(entry["name"])
to_chat(user, SPAN_WARNING("[src] beeps: '[entry["name"]]'s on-suit sensors broadcast an emergency signal. Access monitoring software for details.'"))
if((entry["area"]))
to_chat(user, SPAN_WARNING("[src] beeps: '[entry["name"]]'s on-suit sensors broadcast an emergency signal from [entry["area"]]. Access monitoring software for details.'"))
else
to_chat(user, SPAN_WARNING("[src] beeps: '[entry["name"]]'s on-suit sensors broadcast an emergency signal from an unidentified location. Access monitoring software for details.'"))


schedule_scan()

Expand Down

0 comments on commit 81cdea5

Please sign in to comment.