Revenant Night Eyes (#12413)

This commit is contained in:
Geeves
2021-08-31 17:50:50 +02:00
committed by GitHub
parent f6a13ea461
commit a366d034f5
6 changed files with 35 additions and 7 deletions
+4
View File
@@ -238,6 +238,10 @@
check_flags = AB_CHECK_STUNNED|AB_CHECK_ALIVE|AB_CHECK_INSIDE
button_icon_state = "night_eyes"
/datum/action/item_action/organ/night_eyes/rev
check_flags = AB_CHECK_ALIVE|AB_CHECK_INSIDE
button_icon_state = "rev_eyes"
#undef AB_WEST_OFFSET
#undef AB_NORTH_OFFSET
#undef AB_MAX_COLUMNS
@@ -26,7 +26,6 @@
unarmed_types = list(/datum/unarmed_attack/claws/shredding)
darksight = 8
has_organ = list()
siemens_coefficient = 0
rarity_value = 10
@@ -65,6 +64,10 @@
vision_flags = DEFAULT_SIGHT | SEE_MOBS
has_organ = list(
BP_EYES = /obj/item/organ/internal/eyes/night/revenant
)
has_limbs = list(
BP_CHEST = list("path" = /obj/item/organ/external/chest),
BP_GROIN = list("path" = /obj/item/organ/external/groin),
@@ -86,7 +89,6 @@
inherent_verbs = list(
/mob/living/carbon/human/proc/shatter_light,
/mob/living/carbon/human/proc/darkness_eyes,
/mob/living/carbon/human/proc/dissolve
)
@@ -138,4 +140,15 @@
if((istype(P, /obj/item/projectile/energy) || istype(P, /obj/item/projectile/beam)) && prob(20))
H.visible_message(SPAN_CULT("The [P.name] gets absorbed by [H]!"), SPAN_CULT("You absorb the [P.name]!"))
return -1
return ..()
return ..()
/obj/item/organ/internal/eyes/night/revenant
name = "spectral eyes"
desc = "A pair of glowing eyes. The ocular nerves still slowly writhe."
icon_state = "revenant_eyes"
eye_emote = null
vision_color = null
default_action_type = /datum/action/item_action/organ/night_eyes/rev
/obj/item/organ/internal/eyes/night/revenant/flash_act()
return
@@ -85,9 +85,11 @@
if(can_change_invisible())
owner.set_see_invisible(SEE_INVISIBLE_NOLIGHTING)
if(status & ORGAN_ROBOT)
owner.add_client_color(vision_mechanical_color)
if(vision_mechanical_color)
owner.add_client_color(vision_mechanical_color)
else
owner.add_client_color(vision_color)
if(vision_color)
owner.add_client_color(vision_color)
/obj/item/organ/internal/eyes/night/proc/disable_night_vision()
if(!owner)
@@ -98,9 +100,11 @@
if(can_change_invisible())
owner.set_see_invisible(SEE_INVISIBLE_LIVING)
if(status & ORGAN_ROBOT)
owner.remove_client_color(vision_mechanical_color)
if(vision_mechanical_color)
owner.remove_client_color(vision_mechanical_color)
else
owner.remove_client_color(vision_color)
if(vision_color)
owner.remove_client_color(vision_color)
/obj/item/organ/internal/stomach/tajara
name = "reinforced stomach"
@@ -0,0 +1,7 @@
author: Geeves
delete-after: True
changes:
- rscadd: "Revenant night vision is now located in the top left, like other nightvision abilities."
- bugfix: "Revenant night vision now properly works."
Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 52 KiB

After

Width:  |  Height:  |  Size: 53 KiB