Skip to content

Commit

Permalink
bools
Browse files Browse the repository at this point in the history
  • Loading branch information
Tsar-Salat committed Jan 7, 2024
1 parent ea3cf6a commit fbf8554
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions code/game/data_huds.dm
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@

/datum/atom_hud/data/human/medical/basic/proc/check_sensors(mob/living/carbon/human/H)
if(!istype(H) && !ismonkey(H))
return 0
return FALSE
var/obj/item/clothing/under/U = H.w_uniform
if(!istype(U))
return 0
return FALSE
if(U.sensor_mode <= SENSOR_VITALS)
return 0
return 1
return FALSE
return TRUE

/datum/atom_hud/data/human/medical/basic/add_to_single_hud(mob/M, mob/living/carbon/H)
if(check_sensors(H))
Expand Down Expand Up @@ -92,6 +92,7 @@
/mob/living/carbon/proc/check_virus()
var/threat
var/danger

for(var/thing in diseases)
var/datum/disease/D = thing
if(!(D.visibility_flags & HIDDEN_SCANNER))
Expand Down

0 comments on commit fbf8554

Please sign in to comment.