Merge pull request #12814 from Novacat/nova-basicfixes

Vision and Phaser Bug Fixes
This commit is contained in:
Casey
2022-04-22 18:42:50 -04:00
committed by GitHub
2 changed files with 25 additions and 0 deletions

View File

@@ -108,6 +108,12 @@
incompatible_with = list(NIF_MATERIAL,NIF_THERMALS,NIF_NIGHTVIS)
vision_exclusive = TRUE
/datum/nifsoft/mesons/life()
if((. = ..()))
var/mob/living/carbon/human/H = nif.human
if(H.client)
H.client.screen |= global_hud.meson
/datum/nifsoft/material
name = "Material Scanner"
desc = "Similar to the worn Optical Material Scanner Goggles, these allow you to see objects through walls."
@@ -122,6 +128,12 @@
incompatible_with = list(NIF_MESONS,NIF_THERMALS,NIF_NIGHTVIS)
vision_exclusive = TRUE
/datum/nifsoft/material/life()
if((. = ..()))
var/mob/living/carbon/human/H = nif.human
if(H.client)
H.client.screen |= global_hud.material
/datum/nifsoft/thermals
name = "Thermal Scanner"
desc = "Similar to the worn Thermal Goggles, these allow you to see heat-emitting creatures through walls."
@@ -137,6 +149,12 @@
incompatible_with = list(NIF_MESONS,NIF_MATERIAL,NIF_NIGHTVIS)
vision_exclusive = TRUE
/datum/nifsoft/thermals/life()
if((. = ..()))
var/mob/living/carbon/human/H = nif.human
if(H.client)
H.client.screen |= global_hud.thermal
/datum/nifsoft/nightvis
name = "Low-Light Amp"
desc = "Similar to the worn Night Vision Goggles, these allow you to see in complete darkness."
@@ -150,3 +168,9 @@
darkness_view = 7
incompatible_with = list(NIF_MESONS,NIF_MATERIAL,NIF_THERMALS)
vision_exclusive = TRUE
/datum/nifsoft/nightvis/life()
if((. = ..()))
var/mob/living/carbon/human/H = nif.human
if(H.client)
H.client.screen |= global_hud.nvg

View File

@@ -36,6 +36,7 @@
if(lockable)
locked = !locked
to_chat(user, "<span class='warning'>You [locked ? "enable" : "disable"] the safety lock on \the [src]!</span>")
return 1
/obj/item/weapon/gun/energy/locked/special_check(mob/user)
if(locked)