Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PORT] New traitor item: Polarized Contacts #1323

Merged
merged 2 commits into from
Mar 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions code/modules/clothing/glasses/_glasses.dm
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,29 @@
inhand_icon_state = "gar"
glass_colour_type = /datum/client_colour/glass_colour/red

///Syndicate item that upgrades the flash protection of your eyes.
/obj/item/syndicate_contacts
name = "suspicious contact lens case"
desc = "A sinister red case that contains two shiny black contact lenses."
w_class = WEIGHT_CLASS_TINY
icon = 'icons/obj/device.dmi'
icon_state = "contacts"

/obj/item/syndicate_contacts/attack_self(mob/user, modifiers)
. = ..()
if(!user.get_organ_slot(ORGAN_SLOT_EYES))
to_chat(user, span_warning("You have no eyes to apply the contacts to!"))
return
var/obj/item/organ/internal/eyes/eyes = user.get_organ_slot(ORGAN_SLOT_EYES)

to_chat(user, span_notice("You begin applying the contact lenses to your eyes..."))
if(!do_after(user, 3 SECONDS, src))
return
to_chat(user, span_notice("The contacts seamlessly merge with your iris."))
eyes.flash_protect += FLASH_PROTECTION_WELDER
to_chat(user, span_warning("\The [src] disintegrates into nothing."))
qdel(src)

/obj/item/clothing/glasses/welding
name = "welding goggles"
desc = "Protects the eyes from bright flashes; approved by the mad scientist association."
Expand Down
7 changes: 7 additions & 0 deletions code/modules/uplink/uplink_items/device_tools.dm
Original file line number Diff line number Diff line change
Expand Up @@ -256,3 +256,10 @@
progression_minimum = 30 MINUTES
item = /obj/item/powersink
cost = 11

/datum/uplink_item/device_tools/syndicate_contacts
name = "Polarized Contact Lenses"
desc = "High tech contact lenses that bind directly with the surface of your eyes to give them immunity to flashes and \
bright lights. Effective, affordable, and nigh undetectable."
item = /obj/item/syndicate_contacts
cost = 2 // monke: lower cost to 2TC
Binary file modified icons/obj/device.dmi
Binary file not shown.
Loading