mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-22 19:47:47 +01:00
ling and defines (#18537)
This commit is contained in:
@@ -1165,13 +1165,13 @@
|
||||
var/mob/living/carbon/human/H = loc
|
||||
sensorpref = isnull(H) ? 1 : (ishuman(H) ? H.sensorpref : 1)
|
||||
switch(sensorpref)
|
||||
if(1) sensor_mode = 0 //Sensors off
|
||||
if(2) sensor_mode = 1 //Sensors on binary
|
||||
if(3) sensor_mode = 2 //Sensors display vitals
|
||||
if(4) sensor_mode = 3 //Sensors display vitals and enables tracking
|
||||
if(5) sensor_mode = pick(0,1,2,3) //Select a random setting
|
||||
if(1) sensor_mode = SUIT_SENSOR_OFF //Sensors off
|
||||
if(2) sensor_mode = SUIT_SENSOR_BINARY //Sensors on binary
|
||||
if(3) sensor_mode = SUIT_SENSOR_VITAL //Sensors display vitals
|
||||
if(4) sensor_mode = SUIT_SENSOR_TRACKING //Sensors display vitals and enables tracking
|
||||
if(5) sensor_mode = pick(SUIT_SENSOR_OFF, SUIT_SENSOR_BINARY, SUIT_SENSOR_VITAL, SUIT_SENSOR_TRACKING) //Select a random setting
|
||||
else
|
||||
sensor_mode = pick(0,1,2,3)
|
||||
sensor_mode = pick(SUIT_SENSOR_OFF, SUIT_SENSOR_BINARY, SUIT_SENSOR_VITAL, SUIT_SENSOR_TRACKING)
|
||||
log_runtime("Invalid switch for suit sensors, defaulting to random. [sensorpref] chosen")
|
||||
|
||||
/obj/item/clothing/under/proc/update_rolldown_status()
|
||||
@@ -1261,13 +1261,13 @@
|
||||
|
||||
if (src.loc == user)
|
||||
switch(sensor_mode)
|
||||
if(0)
|
||||
if(SUIT_SENSOR_OFF)
|
||||
user.visible_message("[user] adjusts their sensors.", "You disable your suit's remote sensing equipment.")
|
||||
if(1)
|
||||
if(SUIT_SENSOR_BINARY)
|
||||
user.visible_message("[user] adjusts their sensors.", "Your suit will now report whether you are live or dead.")
|
||||
if(2)
|
||||
if(SUIT_SENSOR_VITAL)
|
||||
user.visible_message("[user] adjusts their sensors.", "Your suit will now report your vital lifesigns.")
|
||||
if(3)
|
||||
if(SUIT_SENSOR_TRACKING)
|
||||
user.visible_message("[user] adjusts their sensors.", "Your suit will now report your vital lifesigns as well as your coordinate position.")
|
||||
|
||||
else if (istype(src.loc, /mob))
|
||||
|
||||
Reference in New Issue
Block a user