Adds EMP weakness to welding shield eyes (#22928)

* malicious ontological theological horticulture

* Update code/modules/surgery/organs/eyes.dm

Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>

* Fixes CI + undefines defines

---------

Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>
Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
This commit is contained in:
Marm
2023-11-03 20:33:14 +00:00
committed by GitHub
co-authored by Contrabang DGamerL
parent 8e6defe682
commit 4bde2cf18d
+7 -4
View File
@@ -112,6 +112,7 @@
desc = "An electronic device designed to mimic the functions of a pair of human eyes. It has no benefits over organic eyes, but is easy to produce."
origin_tech = "biotech=4"
status = ORGAN_ROBOT
var/flash_intensity = 1
/obj/item/organ/internal/eyes/cybernetic/emp_act(severity)
if(!owner || emp_proof)
@@ -119,7 +120,7 @@
if(prob(10 * severity))
return
to_chat(owner, "<span class='warning'>Static obfuscates your vision!</span>")
owner.flash_eyes(visual = TRUE)
owner.flash_eyes(flash_intensity, visual = TRUE)
..()
/obj/item/organ/internal/eyes/cybernetic/meson
@@ -204,9 +205,7 @@
flash_protect = FLASH_PROTECTION_WELDER
eye_color = "#101010"
origin_tech = "materials=4;biotech=3;engineering=4;plasmatech=3"
/obj/item/organ/internal/eyes/cybernetic/shield/emp_act(severity)
return
flash_intensity = 3
#define INTACT 0
#define ONE_SHATTERED 1
@@ -358,3 +357,7 @@
icon_state = "shield_reversed"
duration = 2 SECONDS
invisibility = INVISIBILITY_LEVEL_TWO
#undef INTACT
#undef ONE_SHATTERED
#undef BOTH_SHATTERED