Merge pull request #5904 from MrSnapwalk/icanseeeverything

Adds toggleable goggles.
This commit is contained in:
Zuhayr
2014-08-07 10:02:34 +09:30
3 changed files with 26 additions and 0 deletions

View File

@@ -9,14 +9,33 @@
//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()
usr << "You deactivate the optical matrix on the [src]."
else
active = 1
icon_state = initial(icon_state)
vision_flags = initial(vision_flags)
user.update_inv_glasses()
usr << "You activate the optical matrix on the [src]."
/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 +76,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 +196,7 @@
icon_state = "thermal"
item_state = "glasses"
origin_tech = "magnets=3"
toggleable = 1
vision_flags = SEE_MOBS
invisa_view = 2
@@ -194,6 +216,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 +224,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 +232,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 +240,4 @@
desc = "A set of implantable lenses designed to augment your vision"
icon_state = "thermalimplants"
item_state = "syringe_kit"
toggleable = 0

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.5 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.5 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB