fixes taj and vaurca nightvision (#12150)

This commit is contained in:
Casper3667
2021-07-08 14:11:21 -03:00
committed by GitHub
parent 471c87c490
commit de06f5f1e7
3 changed files with 11 additions and 7 deletions
+4
View File
@@ -234,6 +234,10 @@
if(istype(O))
O.refresh_action_button()
/datum/action/item_action/organ/night_eyes
check_flags = AB_CHECK_STUNNED|AB_CHECK_ALIVE|AB_CHECK_INSIDE
button_icon_state = "night_eyes"
#undef AB_WEST_OFFSET
#undef AB_NORTH_OFFSET
#undef AB_MAX_COLUMNS
@@ -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)
+6
View File
@@ -0,0 +1,6 @@
author: TheGreyWolf
delete-after: True
changes:
- bugfix: "Tajara & Vaurca nightvision can now be used even while restrained or laying down."