Skip to content

Commit

Permalink
Night vision goggles.
Browse files Browse the repository at this point in the history
They have a range of five tiles. Enjoy.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1274 316c924e-a436-60f5-8080-3fe189b3f50e
  • Loading branch information
tronaldnwn@hotmail.com committed Mar 25, 2011
1 parent 52a9c0b commit 97338c7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions code/defines/obj/clothing/glasses.dm
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
item_state = "glasses"
origin_tech = "magnets=2"

/obj/item/clothing/glasses/night
name = "Night Vision Goggles"
icon_state = "night"
item_state = "glasses"
origin_tech = "magnets=2"

/obj/item/clothing/glasses/regular
name = "Prescription Glasses"
icon_state = "glasses"
Expand Down
4 changes: 4 additions & 0 deletions code/modules/mob/living/carbon/human/life.dm
Original file line number Diff line number Diff line change
Expand Up @@ -691,6 +691,10 @@
src.see_in_dark = 3
if(!src.druggy)
src.see_invisible = 0
else if (istype(src.glasses, /obj/item/clothing/glasses/night))
src.see_in_dark = 5
if(!src.druggy)
src.see_invisible = 0
else if (istype(src.glasses, /obj/item/clothing/glasses/thermal))
src.sight |= SEE_MOBS
src.see_in_dark = 4
Expand Down
Binary file modified icons/mob/eyes.dmi
Binary file not shown.
Binary file modified icons/obj/clothing/glasses.dmi
Binary file not shown.

0 comments on commit 97338c7

Please sign in to comment.