Sensor Tweaks (#16434)

* Sensor Tweaks

* anotha one

* sound tweaks

* removed debug code
This commit is contained in:
Geeves
2023-06-23 10:57:15 +00:00
committed by GitHub
parent 001be494d2
commit 5991d40468
11 changed files with 156 additions and 106 deletions
@@ -520,10 +520,16 @@
var/list/vision = H.get_accumulated_vision_handlers()
H.update_sight()
if(H.machine && H.machine.check_eye(H) >= 0 && H.client.eye != H)
var/sight_flags = H.sight
// we inherit sight flags from the machine
H.sight &= ~(get_vision_flags(H))
H.sight &= ~(H.equipment_vision_flags)
H.sight &= ~(vision[1])
sight_flags &= ~(get_vision_flags(H))
sight_flags &= ~(H.equipment_vision_flags)
sight_flags &= ~(vision[1])
sight_flags |= H.machine.check_eye(H)
H.set_sight(sight_flags)
else
H.set_sight(H.sight|get_vision_flags(H)|H.equipment_vision_flags|vision[1])