Ninja-night vision now works.

A ninja now uses proper glasses instead of using its own hack.
Fixed a bug that would override the old ninja-night vision unless one also wore additional glasses in the glasses-inventory slot.
Adds overlays to thermals and mesons as well. Slightly reduces the intensity of the night vision overlay.
This commit is contained in:
PsiOmega
2014-09-11 12:42:12 +02:00
parent 0167be6920
commit 34346cf308
6 changed files with 119 additions and 85 deletions

View File

@@ -15,6 +15,8 @@ var/datum/global_hud/global_hud = new()
var/list/vimpaired
var/list/darkMask
var/obj/screen/nvg
var/obj/screen/thermal
var/obj/screen/meson
/datum/global_hud/New()
//420erryday psychedellic colours screen overlay for when you are high
@@ -33,11 +35,25 @@ var/datum/global_hud/global_hud = new()
nvg = new /obj/screen()
nvg.screen_loc = "1,1"
nvg.icon = 'icons/obj/nvg_hud_full.dmi'
nvg.icon = 'icons/obj/hud_full.dmi'
nvg.icon_state = "nvg_hud"
nvg.layer = 17
nvg.mouse_opacity = 0
thermal = new /obj/screen()
thermal.screen_loc = "1,1"
thermal.icon = 'icons/obj/hud_full.dmi'
thermal.icon_state = "thermal_hud"
thermal.layer = 17
thermal.mouse_opacity = 0
meson = new /obj/screen()
meson.screen_loc = "1,1"
meson.icon = 'icons/obj/hud_full.dmi'
meson.icon_state = "meson_hud"
meson.layer = 17
meson.mouse_opacity = 0
var/obj/screen/O
var/i
//that nasty looking dither you get when you're short-sighted