/
glasses.dm
289 lines (244 loc) · 8.82 KB
/
glasses.dm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
/obj/item/clothing/glasses/meson
name = "Optical Meson Scanner"
desc = "Used by engineering and mining staff to see basic structural and terrain layouts through walls, regardless of lighting condition."
icon_state = "meson"
item_state = "glasses"
origin_tech = "magnets=2;engineering=2"
darkness_view = 1
vision_flags = SEE_TURFS
invis_view = SEE_INVISIBLE_MINIMUM
/obj/item/clothing/glasses/meson/adv
name = "Advanced Meson Scanner"
desc = "Used by engineering and mining staff to see basic structural and terrain layouts through walls, regardless of lighting condition."
darkness_view = 4
origin_tech = "magnets=3;engineering=3"
hud = 1
/obj/item/clothing/glasses/meson/adv/process_hud(var/mob/M)
process_mining_hud(M)
/obj/item/clothing/glasses/meson/gar
name = "Gar Mesons"
icon_state = "garm"
item_state = "garm"
desc = "Do the impossible, see the invisible!"
/obj/item/clothing/glasses/science
name = "Science Goggles"
desc = "nothing"
icon_state = "purple"
item_state = "glasses"
/obj/item/clothing/glasses/night
name = "Night Vision Goggles"
desc = "You can totally see in the dark now!"
icon_state = "night"
item_state = "glasses"
origin_tech = "magnets=4"
darkness_view = 8
invis_view = SEE_INVISIBLE_MINIMUM
/obj/item/clothing/glasses/eyepatch
name = "eyepatch"
desc = "Yarr."
icon_state = "eyepatch"
item_state = "eyepatch"
/obj/item/clothing/glasses/threed
name = "3D glasses"
desc = "A pair of glasses used to watch films in red-cyan anaglyph 3D."
icon_state = "threed"
item_state = "glasses"
/obj/item/clothing/glasses/monocle
name = "monocle"
desc = "Such a dapper eyepiece!"
icon_state = "monocle"
item_state = "headset" // lol
/obj/item/clothing/glasses/material
name = "Optical Material Scanner"
desc = "Very confusing glasses."
icon_state = "material"
item_state = "glasses"
origin_tech = "magnets=3;engineering=3"
vision_flags = SEE_OBJS
invis_view = SEE_INVISIBLE_MINIMUM
/obj/item/clothing/glasses/regular
name = "Prescription Glasses"
desc = "Made by Nerd. Co."
icon_state = "glasses"
item_state = "glasses"
/obj/item/clothing/glasses/regular/hipster
name = "Prescription Glasses"
desc = "Made by Uncool. Co."
icon_state = "hipster_glasses"
item_state = "hipster_glasses"
/obj/item/clothing/glasses/greenglasses
name = "Green Glasses"
desc = "Green-framed prescription glasses, like the kind you'd wear when hatching a nasty scheme."
icon_state = "greenglasses"
item_state = "greenglasses"
/obj/item/clothing/glasses/redglasses
name = "Red Glasses"
desc = "Red-framed prescription glasses."
icon_state = "redglasses"
item_state = "redglasses"
/obj/item/clothing/glasses/blueglasses
name = "Blue Glasses"
desc = "Blue-framed prescription glasses."
icon_state = "blueglasses"
item_state = "blueglasses"
/obj/item/clothing/glasses/yellowglasses
name = "Yellow Glasses"
desc = "Yellow-framed prescription glasses."
icon_state = "yellowglasses"
item_state = "yellowglasses"
/obj/item/clothing/glasses/brownglasses
name = "Brown Glasses"
desc = "Brown-framed prescription glasses."
icon_state = "brownglasses"
item_state = "brownglasses"
/obj/item/clothing/glasses/pinkglasses
name = "Pink Glasses"
desc = "Pink-framed prescription glasses."
icon_state = "pinkglasses"
item_state = "pinkglasses"
/obj/item/clothing/glasses/orangeglasses
name = "Orange Glasses"
desc = "Orange-framed prescription glasses."
icon_state = "orangeglasses"
item_state = "orangeglasses"
/obj/item/clothing/glasses/purpleglasses
name = "Purple Glasses"
desc = "Purple-framed prescription glasses."
icon_state = "purpleglasses"
item_state = "purpleglasses"
/obj/item/clothing/glasses/clearglasses
name = "Clear Glasses"
desc = "Clear-framed prescription glasses."
icon_state = "clearglasses"
item_state = "clearglasses"
/obj/item/clothing/glasses/sunglasses
desc = "Strangely ancient technology used to help provide rudimentary eye cover. Enhanced shielding blocks many flashes."
name = "sunglasses"
icon_state = "sun"
item_state = "sunglasses"
darkness_view = 1
flash_protect = 1
tint = 1
/obj/item/clothing/glasses/sunglasses/garb
desc = "Go beyond impossible and kick reason to the curb!"
name = "black gar glasses"
icon_state = "garb"
item_state = "garb"
force = 10
throwforce = 10
attack_verb = list("sliced")
hitsound = 'sound/weapons/bladeslice.ogg'
/obj/item/clothing/glasses/sunglasses/supergarb
desc = "Believe in us humans."
name = "black super gar glasses"
icon_state = "supergarb"
item_state = "garb"
force = 12
throwforce = 12
attack_verb = list("sliced")
hitsound = 'sound/weapons/bladeslice.ogg'
/obj/item/clothing/glasses/sunglasses/gar
desc = "Just who the hell do you think I am?!"
name = "gar glasses"
icon_state = "gar"
item_state = "gar"
force = 10
throwforce = 10
attack_verb = list("sliced")
hitsound = 'sound/weapons/bladeslice.ogg'
/obj/item/clothing/glasses/sunglasses/supergar
desc = "We evolve past the person we were a minute before. Little by little we advance with each turn. That's how a drill works!"
name = "super gar glasses"
icon_state = "supergar"
item_state = "gar"
force = 12
throwforce = 12
attack_verb = list("sliced")
hitsound = 'sound/weapons/bladeslice.ogg'
/obj/item/clothing/glasses/welding
name = "welding goggles"
desc = "Protects the eyes from welders, approved by the mad scientist association."
icon_state = "welding-g"
item_state = "welding-g"
action_button_name = "Toggle Welding Goggles"
flash_protect = 2
tint = 2
visor_flags = GLASSESCOVERSEYES
visor_flags_inv = HIDEEYES
/obj/item/clothing/glasses/welding/attack_self()
toggle()
/obj/item/clothing/glasses/welding/verb/toggle()
set category = "Object"
set name = "Adjust welding goggles"
set src in usr
weldingvisortoggle()
/obj/item/clothing/glasses/sunglasses/blindfold
name = "blindfold"
desc = "Covers the eyes, preventing sight."
icon_state = "blindfold"
item_state = "blindfold"
// vision_flags = BLIND //handled in life.dm/handle_regular_hud_updates()
flash_protect = 2
tint = 3 // to make them blind
/obj/item/clothing/glasses/sunglasses/big
desc = "Strangely ancient technology used to help provide rudimentary eye cover. Larger than average enhanced shielding blocks many flashes."
icon_state = "bigsunglasses"
item_state = "bigsunglasses"
/obj/item/clothing/glasses/thermal
name = "Optical Thermal Scanner"
desc = "Thermals in the shape of glasses."
icon_state = "thermal"
item_state = "glasses"
origin_tech = "magnets=3"
vision_flags = SEE_MOBS
invis_view = 2
flash_protect = -1
emp_act(severity)
if(istype(src.loc, /mob/living/carbon/human))
var/mob/living/carbon/human/M = src.loc
M << "\red The Optical Thermal Scanner overloads and blinds you!"
if(M.glasses == src)
M.eye_blind = 3
M.eye_blurry = 5
M.disabilities |= NEARSIGHTED
spawn(100)
M.disabilities &= ~NEARSIGHTED
..()
/obj/item/clothing/glasses/thermal/syndi //These are now a traitor item, concealed as mesons. -Pete
name = "Optical Meson Scanner"
desc = "Used by engineering and mining staff to see basic structural and terrain layouts through walls, regardless of lighting condition."
icon_state = "meson"
origin_tech = "magnets=3;syndicate=4"
/obj/item/clothing/glasses/thermal/monocle
name = "Thermoncle"
desc = "A monocle thermal."
icon_state = "thermoncle"
flags = null //doesn't protect eyes because it's a monocle, duh
/obj/item/clothing/glasses/thermal/eyepatch
name = "Optical Thermal Eyepatch"
desc = "An eyepatch with built-in thermal optics"
icon_state = "eyepatch"
item_state = "eyepatch"
/obj/item/clothing/glasses/thermal/jensen
name = "Optical Thermal Implants"
desc = "A set of implantable lenses designed to augment your vision"
icon_state = "thermalimplants"
item_state = "syringe_kit"
//Hypno-spectacles, that do absolutely nothing.
/obj/item/clothing/glasses/hypno
name = "hypno-spectacles"
desc = "A pair of glasses which claim to have the ability to hypnotize people."
icon_state = "hypnospecs"
item_state = "glasses"
action_button_name = "Activate Hypno-Spectacles"
var/cooldown = 0
/obj/item/clothing/glasses/hypno/attack_self(mob/user)
if (user.get_item_by_slot(slot_glasses) != src)
user << "<span class='alert'>You must be wearing the glasses to ogle.</span>"
return
if (cooldown < world.time)
cooldown = world.time + 600 //1 minute.
user.visible_message("<span class='warning'>[user] ogles you disconcertingly!</span>", "<span class='notice'>You ogle everyone nearby.</span>")
else
var/timeleft = (cooldown - world.time)
user << "<span class='notice'>The glasses are recharging, you must wait [round(timeleft/10)] seconds before you can ogle again.</span>"