mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-01-03 14:04:41 +00:00
[MIRROR] Changeling grown clothing should not have sensors (#11707)
Co-authored-by: Will <7099514+Willburd@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
19006d64ac
commit
37a372dfed
@@ -30,6 +30,7 @@
|
||||
ordinary cloth, allowing us to make ourselves appear to wear almost anything."
|
||||
origin_tech = list() //The base chameleon items have origin technology, which we will inherit if we don't null out this variable.
|
||||
canremove = FALSE //Since this is essentially flesh impersonating clothes, tearing someone's skin off as if it were clothing isn't possible.
|
||||
has_sensor = FALSE // Reveals ling, and doesn't make sense anyway!
|
||||
|
||||
/obj/item/clothing/under/chameleon/changeling/emp_act(severity) //As these are purely organic, EMP does nothing to them.
|
||||
return
|
||||
|
||||
@@ -1173,13 +1173,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()
|
||||
@@ -1269,13 +1269,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