Refactor hardcoded suit sensor defines (#69164)

* Refactor suit sensor defines

* Add suit sensor define to HoS suit

* Fix sensor_mode define to be accurate
This commit is contained in:
Tim
2022-08-13 13:45:47 -04:00
committed by GitHub
parent 1a0e5f473b
commit 4e30e6e5fd
3 changed files with 7 additions and 7 deletions
+5 -5
View File
@@ -131,7 +131,7 @@
/mob/living/carbon/human/proc/update_sensor_list()
var/obj/item/clothing/under/U = w_uniform
if(istype(U) && U.has_sensor > 0 && U.sensor_mode)
if(istype(U) && U.has_sensor > NO_SENSORS && U.sensor_mode)
GLOB.suit_sensors_list |= src
else
GLOB.suit_sensors_list -= src
@@ -255,13 +255,13 @@
sensor_mode = modes.Find(switchMode) - 1
if (loc == usr)
switch(sensor_mode)
if(0)
if(SENSOR_OFF)
to_chat(usr, span_notice("You disable your suit's remote sensing equipment."))
if(1)
if(SENSOR_LIVING)
to_chat(usr, span_notice("Your suit will now only report whether you are alive or dead."))
if(2)
if(SENSOR_VITALS)
to_chat(usr, span_notice("Your suit will now only report your exact vital lifesigns."))
if(3)
if(SENSOR_COORDS)
to_chat(usr, span_notice("Your suit will now report your exact vital lifesigns as well as your coordinate position."))
if(ishuman(loc))
@@ -19,7 +19,7 @@
icon_state = "hos_envirosuit"
inhand_icon_state = "hos_envirosuit"
armor = list(MELEE = 10, BULLET = 0, LASER = 0, ENERGY = 0, BOMB = 0, BIO = 100, FIRE = 95, ACID = 95, WOUND = 10)
sensor_mode = 3
sensor_mode = SENSOR_COORDS
random_sensor = FALSE
/obj/item/clothing/under/plasmaman/chief_engineer
+1 -1
View File
@@ -260,7 +260,7 @@
// Or on crew monitors
var/obj/item/clothing/under/sensor_clothes = spawned_human.w_uniform
if(istype(sensor_clothes))
sensor_clothes.sensor_mode = NO_SENSORS
sensor_clothes.sensor_mode = SENSOR_OFF
spawned_human.update_suit_sensors()
//don't use this in subtypes, just add 1000 brute yourself. that being said, this is a type that has 1000 brute. it doesn't really have a home anywhere else, it just needs to exist