Ninjas see better in the dark (#35167)

This commit is contained in:
boy2mantwicethefam
2023-10-15 23:31:47 +03:00
committed by GitHub
parent 0591e3abe4
commit 6775d73c27
3 changed files with 6 additions and 1 deletions

View File

@@ -921,6 +921,7 @@ Suit and assorted
spaceninja.internals.icon_state = "internal1"
spaceninja.see_in_dark_override = 8
spaceninja.dark_plane_alpha_override = 155
/proc/equip_weeaboo(var/mob/living/carbon/human/H)
if(!istype(H))
@@ -945,6 +946,7 @@ Suit and assorted
H.equip_to_slot_or_del(new /obj/item/stack/shuriken/pizza(H,10), slot_l_store)
H.see_in_dark_override = 8
H.dark_plane_alpha_override = 155
var/datum/role/R = H.mind.GetRole(NINJA)
if(R)

View File

@@ -1406,6 +1406,8 @@
if (catvision.count)
dark_plane.alphas["cattulism"] = clamp(15 + (catvision.count * 20),15,155) // The more it activates, the better we see, until we see as well as a tajaran would.
break
if(dark_plane_alpha_override)
dark_plane.alphas["override"] = dark_plane_alpha_override
if (istype(glasses))
glasses.update_perception(src)

View File

@@ -283,6 +283,7 @@
var/see_in_dark_override = 0 //for general guaranteed modification of these variables
var/see_invisible_override = 0
var/dark_plane_alpha_override = 0
var/obj/transmog_body_container/transmogged_from //holds a reference to the container holding the mob that this mob used to be before being transmogrified
var/mob/transmogged_to //holds a reference to the mob which holds a reference to this mob in its transmogged_from var