Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions code/modules/clothing/clothing.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1113,12 +1113,22 @@
to_chat(user, "This suit does not have any sensors.")
return 0

var/list/modes = list("Off", "Binary sensors", "Vitals tracker", "Tracking beacon")
var/switchMode = tgui_input_list(user, "Select a sensor mode:", "Suit Sensor Mode", modes)
var/list/modes = list(
"Off" = SUIT_SENSOR_OFF,
"Binary sensors" = SUIT_SENSOR_BINARY,
"Vitals tracker" = SUIT_SENSOR_VITAL,
"Tracking beacon" = SUIT_SENSOR_TRACKING
)
var/default_choice
for(var/key, value in modes)

Check failure on line 1123 in code/modules/clothing/clothing.dm

View workflow job for this annotation

GitHub Actions / DreamChecker

undefined var: "value"
if(value == sensor_mode)

Check failure on line 1124 in code/modules/clothing/clothing.dm

View workflow job for this annotation

GitHub Actions / DreamChecker

undefined var: "value"
default_choice = key
break
var/switchMode = tgui_input_list(user, "Select a sensor mode:", "Suit Sensor Mode", modes, default_choice)
if(get_dist(user, src) > 1)
to_chat(user, "You have moved too far away.")
return
sensor_mode = modes.Find(switchMode) - 1
sensor_mode = modes[switchMode]

if (src.loc == user)
switch(sensor_mode)
Expand Down
Loading