mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 15:17:01 +01:00
Fixes uniforms with no/broken sensors sending basic medical HUD data (#86612)
## About The Pull Request Checks the uniform for the presence of suit sensors entirely before caring about the mode they're set to. Uniforms spawn with a random sensor_mode regardless if they have sensors or not, so currently a piece of clothing that spawns SENSOR_COORDS will be added to the basic medical HUD even though its has_sensor var is NO_SENSORS 🆑 LT3 fix: Fixed certain clothing sending suit sensor data when it shouldn't be capable /🆑
This commit is contained in:
@@ -28,6 +28,8 @@
|
||||
var/obj/item/clothing/under/U = H.w_uniform
|
||||
if(!istype(U))
|
||||
return FALSE
|
||||
if(U.has_sensor < HAS_SENSORS)
|
||||
return FALSE
|
||||
if(U.sensor_mode <= SENSOR_VITALS)
|
||||
return FALSE
|
||||
return TRUE
|
||||
|
||||
Reference in New Issue
Block a user