mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-15 03:27:46 +00:00
122 lines
3.9 KiB
Plaintext
122 lines
3.9 KiB
Plaintext
/obj/item/organ/internal/cyberimp/eyes
|
|
name = "cybernetic eyes"
|
|
desc = "artificial photoreceptors with specialized functionality"
|
|
icon_state = "eye_implant"
|
|
implant_overlay = "eye_implant_overlay"
|
|
slot = "eye_sight"
|
|
zone = "eyes"
|
|
w_class = 1
|
|
|
|
var/sight_flags = 0
|
|
var/dark_view = 0
|
|
var/eye_color = "fff"
|
|
var/old_eye_color = "fff"
|
|
var/flash_protect = 0
|
|
var/see_invisible = 0
|
|
var/aug_message = "Your vision is augmented!"
|
|
|
|
|
|
/obj/item/organ/internal/cyberimp/eyes/Insert(var/mob/living/carbon/M, var/special = 0)
|
|
..()
|
|
if(istype(owner, /mob/living/carbon/human) && eye_color)
|
|
var/mob/living/carbon/human/HMN = owner
|
|
old_eye_color = HMN.eye_color
|
|
HMN.eye_color = eye_color
|
|
HMN.regenerate_icons()
|
|
if(aug_message && !special)
|
|
owner << "<span class='notice'>[aug_message]</span>"
|
|
|
|
owner.update_sight()
|
|
|
|
/obj/item/organ/internal/cyberimp/eyes/Remove(var/mob/living/carbon/M, var/special = 0)
|
|
M.sight ^= sight_flags
|
|
if(istype(M,/mob/living/carbon/human) && eye_color)
|
|
var/mob/living/carbon/human/HMN = owner
|
|
HMN.eye_color = old_eye_color
|
|
HMN.regenerate_icons()
|
|
..()
|
|
|
|
/obj/item/organ/internal/cyberimp/eyes/emp_act(severity)
|
|
if(!owner)
|
|
return
|
|
if(severity > 1)
|
|
if(prob(10 * severity))
|
|
return
|
|
owner << "<span class='warning'>Static obfuscates your vision!</span>"
|
|
owner.flash_eyes(visual = 1)
|
|
|
|
/obj/item/organ/internal/cyberimp/eyes/xray
|
|
name = "X-ray implant"
|
|
desc = "These cybernetic eye implants will give you X-ray vision. Blinking is futile."
|
|
eye_color = "000"
|
|
implant_color = "#000000"
|
|
origin_tech = "materials=6;programming=4;biotech=6;magnets=5"
|
|
dark_view = 8
|
|
sight_flags = SEE_MOBS | SEE_OBJS | SEE_TURFS
|
|
|
|
/obj/item/organ/internal/cyberimp/eyes/thermals
|
|
name = "Thermals implant"
|
|
desc = "These cybernetic eye implants will give you Thermal vision. Vertical slit pupil included."
|
|
eye_color = "FC0"
|
|
implant_color = "#FFCC00"
|
|
origin_tech = "materials=6;programming=4;biotech=5;magnets=5;syndicate=4"
|
|
sight_flags = SEE_MOBS
|
|
see_invisible = SEE_INVISIBLE_MINIMUM
|
|
flash_protect = -1
|
|
dark_view = 8
|
|
aug_message = "You see prey everywhere you look..."
|
|
|
|
|
|
// HUD implants
|
|
/obj/item/organ/internal/cyberimp/eyes/hud
|
|
name = "HUD implant"
|
|
desc = "These cybernetic eyes will display a HUD over everything you see. Maybe."
|
|
slot = "eye_hud"
|
|
var/HUD_type = 0
|
|
|
|
/obj/item/organ/internal/cyberimp/eyes/hud/Insert(var/mob/living/carbon/M, var/special = 0)
|
|
..()
|
|
if(HUD_type)
|
|
var/datum/atom_hud/H = huds[HUD_type]
|
|
H.add_hud_to(M)
|
|
M.permanent_huds |= H
|
|
|
|
/obj/item/organ/internal/cyberimp/eyes/hud/Remove(var/mob/living/carbon/M, var/special = 0)
|
|
if(HUD_type)
|
|
var/datum/atom_hud/H = huds[HUD_type]
|
|
M.permanent_huds ^= H
|
|
H.remove_hud_from(M)
|
|
..()
|
|
|
|
/obj/item/organ/internal/cyberimp/eyes/hud/medical
|
|
name = "Medical HUD implant"
|
|
desc = "These cybernetic eye implants will display a medical HUD over everything you see."
|
|
eye_color = "0ff"
|
|
implant_color = "#00FFFF"
|
|
origin_tech = "materials=4;programming=3;biotech=4"
|
|
aug_message = "You suddenly see health bars floating above people's heads..."
|
|
HUD_type = DATA_HUD_MEDICAL_ADVANCED
|
|
|
|
/obj/item/organ/internal/cyberimp/eyes/hud/security
|
|
name = "Security HUD implant"
|
|
desc = "These cybernetic eye implants will display a security HUD over everything you see."
|
|
eye_color = "d00"
|
|
implant_color = "#CC0000"
|
|
origin_tech = "materials=4;programming=4;biotech=3;combat=1"
|
|
aug_message = "Job indicator icons pop up in your vision. That is not a certified surgeon..."
|
|
HUD_type = DATA_HUD_SECURITY_ADVANCED
|
|
|
|
|
|
// Welding shield implant
|
|
/obj/item/organ/internal/cyberimp/eyes/shield
|
|
name = "welding shield implant"
|
|
desc = "These reactive micro-shields will protect you from welders and flashes without obscuring your vision."
|
|
slot = "eye_shield"
|
|
origin_tech = "materials=4;biotech=3"
|
|
implant_color = "#101010"
|
|
flash_protect = 2
|
|
aug_message = null
|
|
eye_color = null
|
|
|
|
/obj/item/organ/internal/cyberimp/eyes/shield/emp_act(severity)
|
|
return |