Adds toggleable goggles.

This commit is contained in:
MrSnapwalk
2014-08-05 21:24:45 -05:00
parent a4fc1bfd6a
commit 507b173d11
3 changed files with 24 additions and 0 deletions
+24
View File
@@ -9,14 +9,31 @@
//var/darkness_view = 0//Base human is 2
//var/invisa_view = 0
var/prescription = 0
var/toggleable = 0
var/active = 1
body_parts_covered = EYES
/obj/item/clothing/glasses/attack_self(mob/user)
if(toggleable)
if(active)
active = 0
icon_state = "degoggles"
vision_flags = 0
user.update_inv_glasses()
else
active = 1
icon_state = initial(icon_state)
vision_flags = initial(vision_flags)
user.update_inv_glasses()
/obj/item/clothing/glasses/meson
name = "Optical Meson Scanner"
desc = "Used for seeing walls, floors, and stuff through anything."
icon_state = "meson"
item_state = "glasses"
icon_action_button = "action_meson" //This doesn't actually matter, the action button is generated from the current icon_state. But, this is the only way to get it to show up.
origin_tech = "magnets=2;engineering=2"
toggleable = 1
vision_flags = SEE_TURFS
/obj/item/clothing/glasses/meson/prescription
@@ -57,7 +74,9 @@
desc = "Very confusing glasses."
icon_state = "material"
item_state = "glasses"
icon_action_button = "action_material"
origin_tech = "magnets=3;engineering=3"
toggleable = 1
vision_flags = SEE_OBJS
/obj/item/clothing/glasses/regular
@@ -175,6 +194,7 @@
icon_state = "thermal"
item_state = "glasses"
origin_tech = "magnets=3"
toggleable = 1
vision_flags = SEE_MOBS
invisa_view = 2
@@ -194,6 +214,7 @@
name = "Optical Meson Scanner"
desc = "Used for seeing walls, floors, and stuff through anything."
icon_state = "meson"
icon_action_button = "action_meson"
origin_tech = "magnets=3;syndicate=4"
/obj/item/clothing/glasses/thermal/monocle
@@ -201,6 +222,7 @@
desc = "A monocle thermal."
icon_state = "thermoncle"
flags = null //doesn't protect eyes because it's a monocle, duh
toggleable = 0
body_parts_covered = 0
/obj/item/clothing/glasses/thermal/eyepatch
@@ -208,6 +230,7 @@
desc = "An eyepatch with built-in thermal optics"
icon_state = "eyepatch"
item_state = "eyepatch"
toggleable = 0
body_parts_covered = 0
/obj/item/clothing/glasses/thermal/jensen
@@ -215,3 +238,4 @@
desc = "A set of implantable lenses designed to augment your vision"
icon_state = "thermalimplants"
item_state = "syringe_kit"
toggleable = 0