fixes taj and vaurca nightvision (#12150)

This commit is contained in:
Casper3667
2021-07-08 19:11:21 +02:00
committed by GitHub
parent 471c87c490
commit de06f5f1e7
3 changed files with 11 additions and 7 deletions
@@ -3,6 +3,7 @@
desc = "A pair of Tajaran eyes accustomed to the low light conditions of Adhomai."
icon_state = "tajaran_eyes"
action_button_name = "Activate Low Light Vision"
default_action_type = /datum/action/item_action/organ/night_eyes
relative_size = 8
var/night_vision = FALSE
var/datum/client_color/vision_color = /datum/client_color/monochrome
@@ -21,13 +22,6 @@
. = ..()
disable_night_vision()
/obj/item/organ/internal/eyes/night/refresh_action_button()
. = ..()
if(.)
action.button_icon_state = "night_eyes"
if(action.button)
action.button.update_icon()
/obj/item/organ/internal/eyes/night/attack_self(var/mob/user)
. = ..()
if(owner.last_special > world.time)